mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 06:28:51 +00:00
chore(phone): Types and unused variable cleanup
Co-authored-by: J Francisco Rader <[email protected]>
This commit is contained in:
1 parent
5719c67874
commit
bde18ef1cf
3 files changed
+2
-7
No files matched your search
@@ -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 (
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user