diff --git a/src/AppBar.tsx b/src/AppBar.tsx index e25cd51d..85a03564 100644 --- a/src/AppBar.tsx +++ b/src/AppBar.tsx @@ -50,7 +50,9 @@ export const AppBar: FC = ({ children }) => { const [title, setTitle] = useState(""); const [hidden, setHidden] = useState(false); - const [secondaryButton, setSecondaryButton] = useState(null); + const [secondaryButton, setSecondaryButton] = useState( + null, + ); const context = useMemo( () => ({ setTitle, setSecondaryButton, setHidden }), [setTitle, setHidden, setSecondaryButton], @@ -86,7 +88,7 @@ export const AppBar: FC = ({ children }) => { {title} )} - {secondaryButton} + {secondaryButton ?? "x"} {children}