chore: add themeModeSwitch to default Item

This commit is contained in:
JimmFly
2023-01-18 15:27:54 +08:00
parent d64ae51c94
commit 68dc20cd2e

View File

@@ -44,7 +44,7 @@ const HeaderRightItems: Record<HeaderRightItemNames, ReactNode> = {
};
export const Header = ({
rightItems = ['syncUser'],
rightItems = ['syncUser', 'themeModeSwitch'],
children,
}: PropsWithChildren<{ rightItems?: HeaderRightItemNames[] }>) => {
const [showWarning, setShowWarning] = useState(shouldShowWarning());