style: auto format whole project
This commit is contained in:
@@ -10,7 +10,9 @@ import { IconButton } from './style';
|
||||
export default function ConditionalIconButton(props: any): React.ReactElement {
|
||||
const { icon, ...buttonProps } = props;
|
||||
const theme = useTheme();
|
||||
const matchSmallScreens = useMediaQuery(theme.breakpoints.down('md'), { noSsr: true });
|
||||
const matchSmallScreens = useMediaQuery(theme.breakpoints.down('md'), {
|
||||
noSsr: true,
|
||||
});
|
||||
|
||||
if (matchSmallScreens) {
|
||||
return (
|
||||
@@ -22,10 +24,8 @@ export default function ConditionalIconButton(props: any): React.ReactElement {
|
||||
>
|
||||
{icon}
|
||||
</IconButton>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<Button {...(buttonProps as ButtonProps)} />
|
||||
);
|
||||
return <Button {...(buttonProps as ButtonProps)} />;
|
||||
}
|
||||
|
Reference in New Issue
Block a user