chore: add themeModeSwitch to default Item

This commit is contained in:
JimmFly
2023-01-18 15:27:54 +08:00
parent d64ae51c94
commit 68dc20cd2e
@@ -44,7 +44,7 @@ const HeaderRightItems: Record<HeaderRightItemNames, ReactNode> = {
}; };
export const Header = ({ export const Header = ({
rightItems = ['syncUser'], rightItems = ['syncUser', 'themeModeSwitch'],
children, children,
}: PropsWithChildren<{ rightItems?: HeaderRightItemNames[] }>) => { }: PropsWithChildren<{ rightItems?: HeaderRightItemNames[] }>) => {
const [showWarning, setShowWarning] = useState(shouldShowWarning()); const [showWarning, setShowWarning] = useState(shouldShowWarning());