From e115f9f59c8f4a18f22d0a778e467810025585f4 Mon Sep 17 00:00:00 2001 From: Oli Evans Date: Fri, 3 Feb 2023 11:01:59 +0000 Subject: [PATCH] fix: remove authenticator class when registed (#352) only include the `w3ui-authenticator` class in the dom when we want to show the log in box. otherwise the layout we choose for the register form is inherited by the logged in app layout which is undesirable fixes https://github.com/web3-storage/w3ui/issues/351 License: MIT Signed-off-by: Oli Evans --- .../w3ui/examples/react/w3console/index.html | 2 +- .../w3ui/examples/react/w3console/src/app.tsx | 2 +- .../w3ui/packages/react/src/Authenticator.tsx | 38 ++++++++++--------- 3 files changed, 23 insertions(+), 19 deletions(-) diff --git a/packages/w3ui/examples/react/w3console/index.html b/packages/w3ui/examples/react/w3console/index.html index 1a2c9a8c7..4cab063e7 100644 --- a/packages/w3ui/examples/react/w3console/index.html +++ b/packages/w3ui/examples/react/w3console/index.html @@ -7,7 +7,7 @@ w3console -
+
diff --git a/packages/w3ui/examples/react/w3console/src/app.tsx b/packages/w3ui/examples/react/w3console/src/app.tsx index 1b29e3679..3d99affa5 100644 --- a/packages/w3ui/examples/react/w3console/src/app.tsx +++ b/packages/w3ui/examples/react/w3console/src/app.tsx @@ -135,7 +135,7 @@ export function Logo (): JSX.Element { export function App (): JSX.Element { return ( - +