mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-19 01:28:38 +02:00
refactor: unify export directive style (#6751)
This commit is contained in:
parent
0c807b3501
commit
0d14470d54
105 changed files with 315 additions and 510 deletions
|
@ -34,7 +34,11 @@ export type DetailsProps = {
|
|||
summary?: ReactElement;
|
||||
} & ComponentProps<'details'>;
|
||||
|
||||
function Details({summary, children, ...props}: DetailsProps): JSX.Element {
|
||||
export default function Details({
|
||||
summary,
|
||||
children,
|
||||
...props
|
||||
}: DetailsProps): JSX.Element {
|
||||
const isBrowser = useIsBrowser();
|
||||
const detailsRef = useRef<HTMLDetailsElement>(null);
|
||||
|
||||
|
@ -96,5 +100,3 @@ function Details({summary, children, ...props}: DetailsProps): JSX.Element {
|
|||
</details>
|
||||
);
|
||||
}
|
||||
|
||||
export default Details;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue