mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
tweak(phone/settings): Added streamer mode desc
This commit is contained in:
1 parent
a244183976
commit
19e228894d
3 files changed
+5
-2
No files matched your search
@@ -67,12 +67,13 @@ interface ISettingSwitch {
|
|||||||
value: boolean;
|
value: boolean;
|
||||||
onClick: any;
|
onClick: any;
|
||||||
icon: JSX.Element;
|
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>
|
<ListItem divider button>
|
||||||
<ListItemIcon>{icon}</ListItemIcon>
|
<ListItemIcon>{icon}</ListItemIcon>
|
||||||
<ListItemText primary={label} />
|
<ListItemText primary={label} secondary={secondary} />
|
||||||
<ListItemSecondaryAction>
|
<ListItemSecondaryAction>
|
||||||
<Switch color="primary" checked={value} onChange={() => onClick(value)} />
|
<Switch color="primary" checked={value} onChange={() => onClick(value)} />
|
||||||
</ListItemSecondaryAction>
|
</ListItemSecondaryAction>
|
||||||
|
|||||||
@@ -140,6 +140,7 @@ export const SettingsApp = () => {
|
|||||||
/>
|
/>
|
||||||
<SettingSwitch
|
<SettingSwitch
|
||||||
label={t('APPS_SETTINGS_OPTION_STREAMER_MODE')}
|
label={t('APPS_SETTINGS_OPTION_STREAMER_MODE')}
|
||||||
|
secondary={t('APPS_SETTING_STREAMER_MODE_DESC')}
|
||||||
icon={<VisibilityOffIcon />}
|
icon={<VisibilityOffIcon />}
|
||||||
value={settings.streamerMode}
|
value={settings.streamerMode}
|
||||||
onClick={(curr) => handleSettingChange('streamerMode', !curr)}
|
onClick={(curr) => handleSettingChange('streamerMode', !curr)}
|
||||||
|
|||||||
@@ -121,6 +121,7 @@
|
|||||||
"APPS_SETTINGS_OPTION_NOTIFICATION_FILTER": "Notification Filters",
|
"APPS_SETTINGS_OPTION_NOTIFICATION_FILTER": "Notification Filters",
|
||||||
"APPS_SETTINGS_OPTION_NOTIFICATION": "Notification",
|
"APPS_SETTINGS_OPTION_NOTIFICATION": "Notification",
|
||||||
"APPS_SETTINGS_OPTION_NOTIFICATIONVOL": "Notification Volume",
|
"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_MARKETPLACE_CREATE_LISTING_SUCCESS": "Successfully created a new listing",
|
||||||
"APPS_MARKETPALCE_CREATE_LISTING_FAILED": "Failed to create a new listing",
|
"APPS_MARKETPALCE_CREATE_LISTING_FAILED": "Failed to create a new listing",
|
||||||
|
|||||||
Reference in new issue
Block a user