From e6b70135fbed8b0d4017307cb531061b5f1d3f7b Mon Sep 17 00:00:00 2001 From: Juan Pablo Rombola Date: Tue, 19 Sep 2023 11:08:14 -0300 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20change=20types=20and=20ids?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/AdvancedSwitch/index.tsx | 6 +++--- components/DropdownMenu/index.tsx | 4 ++-- components/Settings/index.tsx | 7 +++---- 3 files changed, 8 insertions(+), 9 deletions(-) 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 ( <>