style: auto format whole project

This commit is contained in:
Ali BARIN
2022-11-05 23:57:33 +01:00
parent e338770e57
commit 475f24f661
199 changed files with 2421 additions and 1839 deletions

View File

@@ -10,22 +10,23 @@ import { CardContent } from './style';
type NoResultFoundProps = {
text?: string;
to?: string;
}
};
export default function NoResultFound(props: NoResultFoundProps): React.ReactElement {
export default function NoResultFound(
props: NoResultFoundProps
): React.ReactElement {
const { text, to } = props;
const ActionAreaLink = React.useMemo(
() =>
React.forwardRef<HTMLAnchorElement, Omit<LinkProps, 'to'>>(function InlineLink(
linkProps,
ref,
) {
if (!to) return <div>{linkProps.children}</div>;
React.forwardRef<HTMLAnchorElement, Omit<LinkProps, 'to'>>(
function InlineLink(linkProps, ref) {
if (!to) return <div>{linkProps.children}</div>;
return <Link ref={ref} to={to} {...linkProps} />;
}),
[to],
return <Link ref={ref} to={to} {...linkProps} />;
}
),
[to]
);
return (
@@ -34,11 +35,9 @@ export default function NoResultFound(props: NoResultFoundProps): React.ReactEle
<CardContent>
{!!to && <AddCircleIcon color="primary" />}
<Typography variant="body1">
{text}
</Typography>
<Typography variant="body1">{text}</Typography>
</CardContent>
</CardActionArea>
</Card>
)
};
);
}