diff --git a/_locales/en/messages.json b/_locales/en/messages.json index dc2031cc0..4ce9e9f89 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -5183,6 +5183,22 @@ "message": "Devices", "description": "Label for Device list in call settings pane" }, + "Preferences__turn-stories-on": { + "message": "Turn on stories", + "description": "Label to enable stories" + }, + "Preferences__turn-stories-off": { + "message": "Turn off stories", + "description": "Label to disable stories" + }, + "Preferences__turn-stories-off--action": { + "message": "Turn off", + "description": "Label in confirmation modal to disable stories" + }, + "Preferences__turn-stories-off--body": { + "message": "You will no longer be able to share or view stories.", + "description": "Confirmation modal body for disabling stories" + }, "DialogUpdate--version-available": { "message": "Update to version $version$ available", "description": "Tooltip for new update available" diff --git a/stylesheets/components/Preferences.scss b/stylesheets/components/Preferences.scss index e85eea1df..2b20f44c1 100644 --- a/stylesheets/components/Preferences.scss +++ b/stylesheets/components/Preferences.scss @@ -251,4 +251,8 @@ ); } } + + &__stories-off { + min-width: 140px; + } } diff --git a/ts/components/Preferences.tsx b/ts/components/Preferences.tsx index f16a2357a..fb554bcd7 100644 --- a/ts/components/Preferences.tsx +++ b/ts/components/Preferences.tsx @@ -290,6 +290,7 @@ export const Preferences = ({ const zoomSelectId = useUniqueId(); const [confirmDelete, setConfirmDelete] = useState(false); + const [confirmStoriesOff, setConfirmStoriesOff] = useState(false); const [page, setPage] = useState(Page.General); const [showSyncFailed, setShowSyncFailed] = useState(false); const [nowSyncing, setNowSyncing] = useState(false); @@ -976,23 +977,22 @@ export const Preferences = ({ } right={ -