styling & tweaks: Improved settings styling and altered config

- Still WIP and many of those components are placeholder/proof of concept for now
- Added corresponding default.json schemas for new settings
- Also added two ringtones that are currently not being utilized
This commit is contained in:
Taso committed 2020-11-19 11:31:16 -05:00
1 parent 954ef6277c
commit 4c9ed764cc
7 files changed
+102 -13

No files matched your search

@@ -1,18 +1,33 @@
import React from "react";
import { ListItem, ListItemText, Divider } from "@material-ui/core";
import React from 'react';
import {
ListItem,
ListItemText,
Divider,
ListItemIcon,
} from '@material-ui/core';
import { SvgIconProps } from '@material-ui/core';
interface IProps {
options?: any;
label: string;
value: string | null;
value?: string | null;
onClick?: any;
icon: JSX.Element;
disabled?: boolean;
}
export const SettingItem = ({ options, label, value, onClick }: IProps) => {
export const SettingItem = ({
options,
label,
value,
onClick,
icon,
disabled,
}: IProps) => {
return (
<>
<ListItem onClick={() => onClick(options)} button>
<ListItemText primary={label} secondary={value} />
<ListItemIcon>{icon}</ListItemIcon>
<ListItemText primary={label} secondary={value ? value : undefined} />
</ListItem>
<Divider />
</>