tweak(phone/settings): Added streamer mode desc

This commit is contained in:
Taso committed 2021-03-16 17:31:41 -04:00
1 parent a244183976
commit 19e228894d
3 files changed
+5 -2

No files matched your search

@@ -67,12 +67,13 @@ interface ISettingSwitch {
value: boolean;
onClick: any;
icon: JSX.Element;
secondary: string;
}
export const SettingSwitch = ({ label, value, onClick, icon }: ISettingSwitch) => (
export const SettingSwitch = ({ label, value, onClick, icon, secondary }: ISettingSwitch) => (
<ListItem divider button>
<ListItemIcon>{icon}</ListItemIcon>
<ListItemText primary={label} />
<ListItemText primary={label} secondary={secondary} />
<ListItemSecondaryAction>
<Switch color="primary" checked={value} onChange={() => onClick(value)} />
</ListItemSecondaryAction>
@@ -140,6 +140,7 @@ export const SettingsApp = () => {
/>
<SettingSwitch
label={t('APPS_SETTINGS_OPTION_STREAMER_MODE')}
secondary={t('APPS_SETTING_STREAMER_MODE_DESC')}
icon={<VisibilityOffIcon />}
value={settings.streamerMode}
onClick={(curr) => handleSettingChange('streamerMode', !curr)}
+1
View File
@@ -121,6 +121,7 @@
"APPS_SETTINGS_OPTION_NOTIFICATION_FILTER": "Notification Filters",
"APPS_SETTINGS_OPTION_NOTIFICATION": "Notification",
"APPS_SETTINGS_OPTION_NOTIFICATIONVOL": "Notification Volume",
"APPS_SETTING_STREAMER_MODE_DESC": "Hide images before they are shown",
"APPS_MARKETPLACE_CREATE_LISTING_SUCCESS": "Successfully created a new listing",
"APPS_MARKETPALCE_CREATE_LISTING_FAILED": "Failed to create a new listing",