diff --git a/next_app/src/components/layout.tsx b/next_app/src/components/layout.tsx index 714472e..4f0a187 100644 --- a/next_app/src/components/layout.tsx +++ b/next_app/src/components/layout.tsx @@ -356,9 +356,9 @@ const VisualCell = ( } -const CellUtilButtons = ({ position, addNewCell }: { position: number, addNewCell: (foo?: number, type?: "CODE" | "MARKDOWN" | "LATEX") => void }) => { - const [visible, setVisible] = useState(false); - return
setVisible(true)} onMouseLeave={() => setVisible(false)}> +const CellUtilButtons = ({ defaultVisible = false, position, addNewCell }: { defaultVisible?: boolean, position: number, addNewCell: (foo?: number, type?: "CODE" | "MARKDOWN" | "LATEX") => void }) => { + const [visible, setVisible] = useState(defaultVisible); + return
setVisible(true)} onMouseLeave={() => setVisible(defaultVisible)}>
@@ -518,7 +518,8 @@ $$\\int_a^b f'(x) dx = f(b)- f(a)$$`, > + Add new cell */} - +
+ ) : ( <> diff --git a/next_app/src/components/settings-tab.tsx b/next_app/src/components/settings-tab.tsx index 6c2d02f..616d7b3 100644 --- a/next_app/src/components/settings-tab.tsx +++ b/next_app/src/components/settings-tab.tsx @@ -115,7 +115,7 @@ export default function SettingsTab() { <div className="my-8 grid grid-cols-3 items-center"> <div>Owner Wallet</div> - <div className="col-span-2">{project.ownerWallet || "NA"}</div> + <div className="col-span-2">{typeof project.ownerWallet == "string" ? project.ownerWallet : "NA"}</div> <div>Current Process</div> <div className="col-span-2">{project.process || "NA"}</div> <div>Default Filetype</div>