From bde18ef1cfda3f2fe4cf3af508b9b7e84c26f4c9 Mon Sep 17 00:00:00 2001 From: J Francisco Rader Date: Sun, 24 Jan 2021 18:30:37 -0500 Subject: [PATCH] chore(phone): Types and unused variable cleanup Co-authored-by: J Francisco Rader --- phone/src/apps/settings/components/SettingItem.tsx | 5 +---- phone/src/apps/settings/components/SettingsApp.tsx | 2 +- phone/src/ui/components/Notification.tsx | 2 -- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/phone/src/apps/settings/components/SettingItem.tsx b/phone/src/apps/settings/components/SettingItem.tsx index 81a00ef..c76d834 100644 --- a/phone/src/apps/settings/components/SettingItem.tsx +++ b/phone/src/apps/settings/components/SettingItem.tsx @@ -5,7 +5,6 @@ import { Divider, ListItemIcon, } from '@material-ui/core'; -import { SvgIconProps } from '@material-ui/core'; interface IProps { options?: any; @@ -13,7 +12,6 @@ interface IProps { value?: string | null; onClick?: any; icon: JSX.Element; - disabled?: boolean; } export const SettingItem = ({ @@ -21,8 +19,7 @@ export const SettingItem = ({ label, value, onClick, - icon, - disabled, + icon }: IProps) => { if (!onClick) return ( diff --git a/phone/src/apps/settings/components/SettingsApp.tsx b/phone/src/apps/settings/components/SettingsApp.tsx index 3c8fe0a..7cef04b 100644 --- a/phone/src/apps/settings/components/SettingsApp.tsx +++ b/phone/src/apps/settings/components/SettingsApp.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react'; +import React from 'react'; import { AppWrapper } from '../../../ui/components'; import { AppTitle } from '../../../ui/components/AppTitle'; import { AppContent } from '../../../ui/components/AppContent'; diff --git a/phone/src/ui/components/Notification.tsx b/phone/src/ui/components/Notification.tsx index e22689c..12775ab 100644 --- a/phone/src/ui/components/Notification.tsx +++ b/phone/src/ui/components/Notification.tsx @@ -3,7 +3,6 @@ import Paper from '@material-ui/core/Paper'; import Snackbar from '@material-ui/core/Snackbar'; import Fade from '@material-ui/core/Fade'; import { makeStyles } from '@material-ui/core/styles'; -import { useSettings } from '../../apps/settings/hooks/useSettings'; import { usePhone } from '../../os/phone/hooks/usePhone'; const useStyles = makeStyles({ @@ -19,7 +18,6 @@ const useStyles = makeStyles({ function Notification({ children, handleClose, open }) { const classes = useStyles(); - const [settings] = useSettings(); const { config } = usePhone(); if (!config) return null;