forked from ubclaunchpad/umami
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initialized Alert.js, reducer and action. * Added alerts to saga functions and onto signup. * Fixed error. * Added alerts to signup and login. * Added alerts to profile.js * Fixed alerts appearing between login and signup. * Added alert to editprofile. * Added alerts onto newStep and recipe. * Edits to editprofile and profile. * Added alerts and dispatches between screens. * Delete package-lock.json Co-authored-by: Hao (Harin) Wu <[email protected]>
1 parent
bf396f0
commit 669cfa7
Showing
24 changed files
with
422 additions
and
8,199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
// Redux | ||
export const SET_ONBOARDING = 'SET_ONBOARDING'; | ||
export const SET_LOADING = 'SET_LOADING'; | ||
export const SET_ALERT = 'SET_ALERT'; | ||
|
||
// Saga |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Alert } from 'react-native'; | ||
|
||
export default function Alerts(alertVisible, text) { | ||
|
||
return alertVisible ? Alert.alert( | ||
"Error", | ||
text | ||
) : null; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.