fix(striker-ui): add custom Link component

main
Tsu-ba-me 3 years ago
parent fbac65857d
commit d81b0e54d7
  1. 25
      striker-ui/components/Link.tsx

@ -0,0 +1,25 @@
import { FC } from 'react';
import { Link as MUILink, LinkProps as MUILinkProps } from '@mui/material';
import { GREY } from '../lib/consts/DEFAULT_THEME';
export type LinkProps = MUILinkProps;
const Link: FC<LinkProps> = ({ children, sx, ...restLinkProps }) => (
<MUILink
{...{
underline: 'always',
variant: 'subtitle1',
...restLinkProps,
sx: {
color: GREY,
textDecorationColor: GREY,
...sx,
},
}}
>
{children}
</MUILink>
);
export default Link;
Loading…
Cancel
Save