|
@ -4,7 +4,6 @@ import { Box, Flex, ChevronIcon, space, color, Grid } from '@stacks/ui'; |
|
|
import hydrate from 'next-mdx-remote/hydrate'; |
|
|
import hydrate from 'next-mdx-remote/hydrate'; |
|
|
import { Accordion, AccordionItem, AccordionButton, AccordionPanel } from '@reach/accordion'; |
|
|
import { Accordion, AccordionItem, AccordionButton, AccordionPanel } from '@reach/accordion'; |
|
|
import { border } from '@common/utils'; |
|
|
import { border } from '@common/utils'; |
|
|
import { css } from '@stacks/ui-core'; |
|
|
|
|
|
import { useRouter } from 'next/router'; |
|
|
import { useRouter } from 'next/router'; |
|
|
import { useActiveHeading } from '@common/hooks/use-active-heading'; |
|
|
import { useActiveHeading } from '@common/hooks/use-active-heading'; |
|
|
import { BackButton } from '@components/back-button'; |
|
|
import { BackButton } from '@components/back-button'; |
|
@ -29,12 +28,15 @@ const FAQItem = React.memo(({ faq, ...rest }: any) => { |
|
|
display: 'flex', |
|
|
display: 'flex', |
|
|
width: '100%', |
|
|
width: '100%', |
|
|
outline: 'none', |
|
|
outline: 'none', |
|
|
|
|
|
bg: 'transparent', |
|
|
|
|
|
border: '0', |
|
|
alignItems: 'center', |
|
|
alignItems: 'center', |
|
|
justifyContent: 'space-between', |
|
|
justifyContent: 'space-between', |
|
|
py: space('extra-loose'), |
|
|
py: space('extra-loose'), |
|
|
textAlign: 'left', |
|
|
textAlign: 'left', |
|
|
color: isActive ? color('accent') : color('text-title'), |
|
|
color: isActive ? color('accent') : color('text-title'), |
|
|
_hover: { |
|
|
_hover: { |
|
|
|
|
|
cursor: 'pointer', |
|
|
color: color('accent'), |
|
|
color: color('accent'), |
|
|
}, |
|
|
}, |
|
|
}} |
|
|
}} |
|
|