mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Feature / Streamer Mode (#159)
* feat(phone/settings): Add streamer mode setting and PictureReveal component :) * feat(phone/settings): Add PictureReveal streamer mode to twitter and improve its theme a bit
This commit is contained in:
1 parent
d841ee0958
commit
75a4eb176e
27 files changed
+175
-92
No files matched your search
@@ -9,6 +9,7 @@ import {
|
||||
IconButton,
|
||||
Tooltip,
|
||||
Typography,
|
||||
Switch,
|
||||
} from '@material-ui/core';
|
||||
|
||||
interface ISettingItem {
|
||||
@@ -61,6 +62,23 @@ interface ISettingItemIconAction {
|
||||
actionLabel: string;
|
||||
}
|
||||
|
||||
interface ISettingSwitch {
|
||||
label: string;
|
||||
value: boolean;
|
||||
onClick: any;
|
||||
icon: JSX.Element;
|
||||
}
|
||||
|
||||
export const SettingSwitch = ({ label, value, onClick, icon }: ISettingSwitch) => (
|
||||
<ListItem divider button>
|
||||
<ListItemIcon>{icon}</ListItemIcon>
|
||||
<ListItemText primary={label} />
|
||||
<ListItemSecondaryAction>
|
||||
<Switch color="primary" checked={value} onChange={() => onClick(value)} />
|
||||
</ListItemSecondaryAction>
|
||||
</ListItem>
|
||||
);
|
||||
|
||||
export const SettingItemIconAction = ({
|
||||
icon,
|
||||
label,
|
||||
|
||||
Reference in new issue
Block a user