refactor, added slate, added editor, added book
This commit is contained in:
parent
bc250e73bb
commit
029b7e9353
33 changed files with 714 additions and 496 deletions
25
app/client/components/Link.tsx
Normal file
25
app/client/components/Link.tsx
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { Text } from '@chakra-ui/react';
|
||||
import { LinkProps as LinkExtended, Link as TanstackLink } from '@tanstack/react-router';
|
||||
import { ReactNode } from 'react';
|
||||
|
||||
interface LinkProps {
|
||||
children: ReactNode;
|
||||
to: LinkExtended['to'];
|
||||
link?: LinkExtended;
|
||||
}
|
||||
|
||||
export function Link(props: LinkProps) {
|
||||
return (
|
||||
<TanstackLink {...props}>
|
||||
<Text
|
||||
color="colorPalette.500"
|
||||
_hover={{
|
||||
textDecoration: 'underline',
|
||||
textDecorationColor: 'colorPalette.700'
|
||||
}}
|
||||
>
|
||||
{props.children}
|
||||
</Text>
|
||||
</TanstackLink>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue