diff --git a/components/AdvancedSwitch/index.tsx b/components/AdvancedSwitch/index.tsx index 6b1ec58cb..3657604df 100644 --- a/components/AdvancedSwitch/index.tsx +++ b/components/AdvancedSwitch/index.tsx @@ -1,11 +1,11 @@ import React, { FC } from 'react'; -import { Box, Typography } from '@mui/material'; +import { Box, BoxProps, Typography } from '@mui/material'; import { useCustomTheme } from 'contexts/ThemeContext'; import { useTranslation } from 'react-i18next'; import Switch from 'components/Switch'; type Props = { - sx?: React.ComponentProps['sx']; + sx?: BoxProps['sx']; fontSize?: number; }; @@ -14,7 +14,7 @@ const AdvancedViewSwitch: FC = ({ sx, fontSize = 14 }) => { const { view, setView } = useCustomTheme(); return ( - + {t('Advanced view')} extends Pick { @@ -10,7 +10,7 @@ interface Props extends Pick { renderOption: (value: T) => ReactNode; 'data-testid'?: string; disabled?: boolean; - buttonSx?: React.ComponentProps['sx']; + buttonSx?: ButtonProps['sx']; } function InnerButton({ children }: PropsWithChildren) { diff --git a/components/Settings/index.tsx b/components/Settings/index.tsx index 165253441..11b3d773f 100644 --- a/components/Settings/index.tsx +++ b/components/Settings/index.tsx @@ -17,24 +17,23 @@ const Settings = () => { return ( <>