Skip to content

Commit 258353d

Browse files
committed
update docusaurus
1 parent 3297d84 commit 258353d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

website/src/hooks/useDocumentTitle.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useEffect } from 'react';
22

33
/**
4-
* Update the document title dynamically based on hash and title
4+
* Update the document title dynamically based on hash and title.
55
*/
66
export const useDocumentTitle = (title: string) => {
77
useEffect(() => {
@@ -48,6 +48,9 @@ type UseDocumentTitleProps = {
4848
children: string;
4949
};
5050

51+
/**
52+
* Wrapper component, since MDX file can't import hooks directly.
53+
*/
5154
export const UseDocumentTitle = ({ children }: UseDocumentTitleProps) => {
5255
useDocumentTitle(children);
5356

0 commit comments

Comments
 (0)