-
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.
Merge pull request #12 from TaskRatchet/Loading-indicators
app icon update, added info popup to new task popup
- Loading branch information
Showing
80 changed files
with
207 additions
and
29 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.27 MB
...escue4000_grunge_metal._texture._flat._9288357e-f36a-49c3-83e6-958a6a715cfe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.
Diff not rendered.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
16 changes: 8 additions & 8 deletions
16
ios/mobile/Images.xcassets/AppIcon.appiconset/Contents.json
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
Binary file added
BIN
+24.8 KB
ios/mobile/Images.xcassets/AppIcon.appiconset/TR_Icon_1024-120x120 1.png
Oops, something went wrong.
Binary file added
BIN
+24.8 KB
ios/mobile/Images.xcassets/AppIcon.appiconset/TR_Icon_1024-120x120.png
Oops, something went wrong.
Binary file added
BIN
+51.3 KB
ios/mobile/Images.xcassets/AppIcon.appiconset/TR_Icon_1024-180x180.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+847 KB
(520%)
ios/mobile/Images.xcassets/AppIcon.appiconset/TR_Icon_1024.png
Oops, something went wrong.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
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 |
---|---|---|
@@ -0,0 +1,85 @@ | ||
import React from 'react'; | ||
import {Modal, Pressable, Text, View} from 'react-native'; | ||
|
||
import themeProvider from '../providers/themeProvider'; | ||
import {styles} from '../styles/stakesInfoPopupStyle'; | ||
import useIsDarkMode from '../utils/checkDarkMode'; | ||
import type {stakesInfoPopupProps} from './types'; | ||
|
||
export default function StakesInfoPopup({ | ||
stakesInfoModalVisible, | ||
setStakesInfoModalVisible, | ||
}: stakesInfoPopupProps): JSX.Element { | ||
const isDarkMode = useIsDarkMode(); | ||
|
||
const backgroundStyle = { | ||
backgroundColor: isDarkMode | ||
? themeProvider.colorsDark.secondaryLight | ||
: themeProvider.colorsLight.secondary, | ||
}; | ||
|
||
const textColorStyle = { | ||
color: isDarkMode ? 'white' : 'black', | ||
}; | ||
|
||
return ( | ||
<View> | ||
<Modal | ||
visible={stakesInfoModalVisible} | ||
transparent={true} | ||
animationType="none"> | ||
<View style={styles.centeredView}> | ||
<View style={[styles.modalView, backgroundStyle]}> | ||
<Text style={[styles.paragraph, textColorStyle]}> | ||
<Text> | ||
Setting stakes helps you stay committed to your goals. When | ||
creating a task, you assign a monetary value to it. Here's how | ||
it works: | ||
</Text> | ||
{'\n\n'} | ||
<Text style={styles.bold}>Stakes Amount: </Text> | ||
<Text> | ||
This is the amount you pledge to pay if you don't complete the | ||
task on time. | ||
</Text> | ||
{'\n'} | ||
<Text style={styles.bold}>Completion Deadline: </Text> | ||
<Text> | ||
If you mark the task as complete before the deadline you set, | ||
you won't be charged. | ||
</Text> | ||
{'\n\n'} | ||
<Text style={styles.bold}>Why set stakes? </Text> | ||
<Text> | ||
{'\n'} | ||
<Text style={styles.bold}>Motivation: </Text> | ||
Adding stakes adds a level of motivation to your tasks. | ||
{'\n'} | ||
<Text style={styles.bold}>Accountability: </Text> | ||
Committing to a financial stake can help you stay accountable to | ||
your goals. | ||
{'\n'} | ||
<Text style={styles.bold}>Reward for Success: </Text> | ||
Successfully completing tasks on time means you keep your money. | ||
</Text> | ||
</Text> | ||
<Pressable | ||
style={({pressed}) => [ | ||
{ | ||
backgroundColor: pressed | ||
? 'rgba(33, 150, 243, 0.5)' | ||
: '#2196F3', | ||
}, | ||
styles.button, | ||
]} | ||
onPress={() => | ||
setStakesInfoModalVisible(!stakesInfoModalVisible) | ||
}> | ||
<Text style={styles.buttonTextStyle}>Hide</Text> | ||
</Pressable> | ||
</View> | ||
</View> | ||
</Modal> | ||
</View> | ||
); | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import {StyleSheet} from 'react-native'; | ||
|
||
export const styles = StyleSheet.create({ | ||
paragraph: { | ||
fontSize: 14, | ||
textAlign: 'center', | ||
margin: 5, | ||
marginBottom: 15, | ||
}, | ||
buttonTextStyle: { | ||
color: 'white', | ||
fontWeight: 'bold', | ||
textAlign: 'center', | ||
}, | ||
button: { | ||
borderRadius: 20, | ||
margin: 5, | ||
padding: 10, | ||
elevation: 2, | ||
}, | ||
centeredView: { | ||
flex: 1, | ||
justifyContent: 'center', | ||
marginTop: 22, | ||
}, | ||
modalView: { | ||
margin: 20, | ||
backgroundColor: 'white', | ||
borderRadius: 20, | ||
padding: 35, | ||
shadowColor: '#000', | ||
shadowOffset: { | ||
width: 0, | ||
height: 2, | ||
}, | ||
shadowOpacity: 0.25, | ||
shadowRadius: 4, | ||
elevation: 5, | ||
}, | ||
bold: { | ||
fontWeight: 'bold', | ||
}, | ||
}); |