working typescript compiling and fixing linting issues

This commit is contained in:
erik-sn committed 2020-10-11 13:59:25 -04:00
1 parent b1babd88c2
commit 3273d192c9
49 files changed
+271 -110

No files matched your search

@@ -1,7 +1,14 @@
import React from "react";
import { ListItem, ListItemText, Divider } from "@material-ui/core";
export const SettingItem = ({ options, label, value, onClick }) => {
interface IProps {
options?: any;
label: string;
value: string | null;
onClick?: any;
}
export const SettingItem = ({ options, label, value, onClick }: IProps) => {
return (
<>
<ListItem onClick={() => onClick(options)} button>
+1 -1
View File
@@ -8,7 +8,7 @@ const settingsState = atom({
default: Default,
});
export const useSettings = () => {
export const useSettings = (): any => {
const [settings, setSettings] = useConfig(settingsState);
const [config] = useConfig();
const currentTheme = () => createMuiTheme(config.themes[settings.theme]);