From de3825c95cb8eb5756608cb3a9e674e6d89c9117 Mon Sep 17 00:00:00 2001 From: ankushKun Date: Tue, 28 May 2024 15:22:12 +0530 Subject: [PATCH] last cell utils visible, settings owner wallet fix --- next_app/src/components/layout.tsx | 9 +++++---- next_app/src/components/settings-tab.tsx | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) 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>