Skip to content

Commit

Permalink
chore: update bottom sheet architecture (#927)
Browse files Browse the repository at this point in the history
* chore: create new bottom sheet wrapper

* chore: reusable hook to disable android back button

* chore: prevent back button hook in bottom sheet wrapper

* chore: added bottom sheet description

* chore: updated sync settings to use new modal

* chore: update border radius

* chore: unsubscribe from listener
  • Loading branch information
ErikSin authored Feb 5, 2025
1 parent c4c4c60 commit b4c9574
Show file tree
Hide file tree
Showing 10 changed files with 674 additions and 468 deletions.
45 changes: 27 additions & 18 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -871,36 +871,18 @@
"screens.MediaSyncSettings.syncEverything": {
"message": "Sync Everything"
},
"screens.MediaSyncSettings.syncEverythingButtonBottomSheet": {
"message": "Sync Everything?"
},
"screens.MediaSyncSettings.syncEverythingDescription": {
"message": "Your device will sync <bold>all</bold> content at full size, including photos, audio, and videos."
},
"screens.MediaSyncSettings.syncEverythingDescriptionBottomSheet": {
"message": "You are about to sync everything. This may increase the disk space used on your device."
},
"screens.MediaSyncSettings.syncEverythingWarning": {
"message": "Note: This will use more storage."
},
"screens.MediaSyncSettings.syncPreviewWarningBottomSheet": {
"message": "You will no longer sync Audio or Video."
},
"screens.MediaSyncSettings.syncPreviews": {
"message": "Sync Previews (Photos Only)"
},
"screens.MediaSyncSettings.syncPreviewsBottomSheetConfirm": {
"message": "Sync Previews"
},
"screens.MediaSyncSettings.syncPreviewsButtonBottomSheet": {
"message": "Sync Previews?"
},
"screens.MediaSyncSettings.syncPreviewsDescription": {
"message": "Photos will sync at a reduced smaller size. Device will <bold>not</bold> sync audio or video."
},
"screens.MediaSyncSettings.syncPreviewsDescriptionBottomSheet": {
"message": "Your device will keep all existing data but new observations will sync in a smaller, preview size."
},
"screens.MediaSyncSettings.title": {
"message": "Sync Settings"
},
Expand Down Expand Up @@ -1565,6 +1547,33 @@
"screens.Sync.ProjectSyncDisplay.waitingForDevices": {
"message": "Waiting for devices"
},
"screens.SyncEverythingBottomSheet.cancel": {
"message": "Cancel"
},
"screens.SyncEverythingBottomSheet.confirm": {
"message": "Sync Everything"
},
"screens.SyncEverythingBottomSheet.syncEverything": {
"message": "Sync Everything?"
},
"screens.SyncEverythingBottomSheet.syncEverythingDescription": {
"message": "You are about to sync everything. This may increase the disk space used on your device."
},
"screens.SyncPreviewBottomSheet.cancel": {
"message": "Cancel"
},
"screens.SyncPreviewBottomSheet.confirm": {
"message": "Sync Previews"
},
"screens.SyncPreviewBottomSheet.syncPreviewWarningBottomSheet": {
"message": "You will no longer sync Audio or Video."
},
"screens.SyncPreviewBottomSheet.syncPreviewsButtonBottomSheet": {
"message": "Sync Previews?"
},
"screens.SyncPreviewBottomSheet.syncPreviewsDescriptionBottomSheet": {
"message": "Your device will keep all existing data but new observations will sync in a smaller, preview size."
},
"screens.Track.ObservationList.observation": {
"message": "Observation"
},
Expand Down
Loading

0 comments on commit b4c9574

Please sign in to comment.