From 97a513491beafac051e60ce5e8ee0e78566acfed Mon Sep 17 00:00:00 2001 From: Deni Date: Fri, 30 Dec 2022 11:49:38 +0300 Subject: [PATCH] Add more images to the README, change PB color back to blue and only show reorder button when all stat types are shown and when there are more than 1 --- README.md | 4 ++++ app/components/Entry.tsx | 2 +- app/components/StatTypeModal.tsx | 12 +++++++----- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9c09382..c53dff7 100644 --- a/README.md +++ b/README.md @@ -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 (cube327@tuta.io). This disclaimer will be removed once this app reaches version 1.0. diff --git a/app/components/Entry.tsx b/app/components/Entry.tsx index a4415ae..889255c 100644 --- a/app/components/Entry.tsx +++ b/app/components/Entry.tsx @@ -87,7 +87,7 @@ const Entry: React.FC<{ const styles = StyleSheet.create({ pbStyle: { - color: '#0c0', + color: 'blue', fontWeight: 'bold', }, }); diff --git a/app/components/StatTypeModal.tsx b/app/components/StatTypeModal.tsx index 5c9c8f7..ee08b7c 100644 --- a/app/components/StatTypeModal.tsx +++ b/app/components/StatTypeModal.tsx @@ -67,11 +67,13 @@ const ChooseStatModal: React.FC<{ - setReordering((prevReordering) => !prevReordering)}> - - {reordering ? 'Done' : 'Reorder'} - - + {filteredStatTypes.length === statTypes.length && statTypes.length > 1 && ( + setReordering((prevReordering) => !prevReordering)}> + + {reordering ? 'Done' : 'Reorder'} + + + )} {filteredStatTypes.map((item) => ( submitStatType(item)} key={item.id}>