* rename to LinksList * add padding after sections in LinksList * reduce padding between sections to 1.5rem
This commit is contained in:
parent
8b1b80604e
commit
1f90789712
|
@ -18,7 +18,7 @@ export const LinksList: FC<LinksListProps> = ({ links }) => {
|
||||||
const split = to?.split('/')
|
const split = to?.split('/')
|
||||||
const isActive = slug && split && split[split.length - 1] === slug[slug.length - 1];
|
const isActive = slug && split && split[split.length - 1] === slug[slug.length - 1];
|
||||||
return to ? (
|
return to ? (
|
||||||
<Stack key={id} _hover={{ background: 'primary', color: 'bg' }} data-group>
|
<Stack key={id} pb={items ? 6 : 0} _hover={{ background: 'primary', color: 'bg' }} data-group>
|
||||||
<NextLink href={to} passHref key={id}>
|
<NextLink href={to} passHref key={id}>
|
||||||
<Link textDecoration='none !important'>
|
<Link textDecoration='none !important'>
|
||||||
<Text
|
<Text
|
||||||
|
@ -44,7 +44,7 @@ export const LinksList: FC<LinksListProps> = ({ links }) => {
|
||||||
{items && <LinksList links={items} />}
|
{items && <LinksList links={items} />}
|
||||||
</Stack>
|
</Stack>
|
||||||
) : (
|
) : (
|
||||||
<Stack key={id}>
|
<Stack key={id} pb={6}>
|
||||||
<Text textStyle='docs-nav-links' color={items ? 'primary' : 'body'}>
|
<Text textStyle='docs-nav-links' color={items ? 'primary' : 'body'}>
|
||||||
{id}
|
{id}
|
||||||
</Text>
|
</Text>
|
|
@ -3,6 +3,6 @@ export * from './Code';
|
||||||
export * from './DocsLinks';
|
export * from './DocsLinks';
|
||||||
export * from './DocsNav';
|
export * from './DocsNav';
|
||||||
export * from './DocumentNav';
|
export * from './DocumentNav';
|
||||||
export * from './LinkList';
|
export * from './LinksList';
|
||||||
export * from './Note';
|
export * from './Note';
|
||||||
export { default } from './MDComponents';
|
export { default } from './MDComponents';
|
||||||
|
|
Loading…
Reference in New Issue