Skip to content

Commit

Permalink
Add more images to the README, change PB color back to blue and only …
Browse files Browse the repository at this point in the history
…show reorder button when all stat types are shown and when there are more than 1
  • Loading branch information
dmint789 committed Dec 30, 2022
1 parent d476d28 commit 97a5134
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Mobile app for tracking various statistics, like things related to work, educati

![](https://denimintsaev.com/api/stat_tracker_2.jpg)

![](https://denimintsaev.com/api/stat_tracker_3.jpg)

![](https://denimintsaev.com/api/stat_tracker_4.jpg)

## Download

You can download a **WORK IN PROGRESS** build of this app on the [releases page](https://github.com/dmint789/stat-tracker/releases). Keep in mind that future releases could be incompatible with the version you download. However, it will still be possible to change your old backup file to the new format. If you need to have this done, feel free to contact me ([email protected]). This disclaimer will be removed once this app reaches version 1.0.
Expand Down
2 changes: 1 addition & 1 deletion app/components/Entry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const Entry: React.FC<{

const styles = StyleSheet.create({
pbStyle: {
color: '#0c0',
color: 'blue',
fontWeight: 'bold',
},
});
Expand Down
12 changes: 7 additions & 5 deletions app/components/StatTypeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,13 @@ const ChooseStatModal: React.FC<{
<View style={GS.modalContainer}>
<ScrollView keyboardShouldPersistTaps="always">
<View style={GS.modalBackground}>
<TouchableOpacity onPress={() => setReordering((prevReordering) => !prevReordering)}>
<Text style={{ ...GS.text, marginBottom: 16, textAlign: 'right', color: 'blue' }}>
{reordering ? 'Done' : 'Reorder'}
</Text>
</TouchableOpacity>
{filteredStatTypes.length === statTypes.length && statTypes.length > 1 && (
<TouchableOpacity onPress={() => setReordering((prevReordering) => !prevReordering)}>
<Text style={{ ...GS.text, marginBottom: 16, textAlign: 'right', color: 'blue' }}>
{reordering ? 'Done' : 'Reorder'}
</Text>
</TouchableOpacity>
)}
{filteredStatTypes.map((item) => (
<TouchableOpacity onPress={() => submitStatType(item)} key={item.id}>
<View style={GS.smallCard}>
Expand Down

0 comments on commit 97a5134

Please sign in to comment.