mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-04 19:11:57 +08:00
chore: add themeModeSwitch to default Item
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user