From 6619a6ed6e563542981e301fcb112f5e44afe584 Mon Sep 17 00:00:00 2001 From: ttang Date: Sun, 25 Jun 2023 18:42:54 +0800 Subject: [PATCH 1/2] feat: remove login --- packages/client/scan/src/components/Nav.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/scan/src/components/Nav.tsx b/packages/client/scan/src/components/Nav.tsx index 4a021abc..9a6f2744 100644 --- a/packages/client/scan/src/components/Nav.tsx +++ b/packages/client/scan/src/components/Nav.tsx @@ -54,7 +54,7 @@ export default function Nav() {
- + {/* */}
Date: Mon, 26 Jun 2023 13:32:36 +0800 Subject: [PATCH 2/2] feat: backBtn valuable check --- packages/client/scan/src/components/Header.tsx | 2 +- packages/client/scan/src/components/Nav.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/client/scan/src/components/Header.tsx b/packages/client/scan/src/components/Header.tsx index bf623d3a..c6bd9d70 100644 --- a/packages/client/scan/src/components/Header.tsx +++ b/packages/client/scan/src/components/Header.tsx @@ -48,7 +48,7 @@ export default function Header() { return (
- {(showBack && ( + {(showBack && window.history.length > 1 && ( { if (location.pathname.startsWith('/models/modelview')) { diff --git a/packages/client/scan/src/components/Nav.tsx b/packages/client/scan/src/components/Nav.tsx index 9a6f2744..dcc4a4f9 100644 --- a/packages/client/scan/src/components/Nav.tsx +++ b/packages/client/scan/src/components/Nav.tsx @@ -3,7 +3,6 @@ import styled from 'styled-components' import GitHubButton from 'react-github-btn' import Logo from './Logo' -import LoginButton from './LoginButton' import { useCeramicCtx } from '../context/CeramicCtx' export default function Nav() {