Skip to content

Commit

Permalink
Apply whitelabel theme to authenticate page
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura committed Jun 13, 2024
1 parent 7a3da3b commit ea1cb2c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions packages/keychain/src/components/connect/Signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,17 @@ export function Signup({
setIsLoading(true);
setIsRegistering(true);

const searchParams = new URLSearchParams(window.location.search);
searchParams.set("name", encodeURIComponent(values.username))
searchParams.set("action", "signup")

// due to same origin restriction, if we're in iframe, pop up a
// window to continue webauthn registration. otherwise,
// display modal overlay. in either case, account is created in
// authenticate component, so we poll and then deploy
if (isIframe()) {
PopupCenter(
`/authenticate?name=${encodeURIComponent(
values.username,
)}&action=signup`,
`/authenticate?${searchParams.toString()}`,
"Cartridge Signup",
480,
640,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ function Wrapper({ variant = "default", children, ...rest }: React.PropsWithChil
borderWidth={1}
borderColor="solid.primaryAccent"
verticalAlign="middle"
// m="auto auto"
bg="solid.bg"
p={0}
as={motion.div}
Expand Down
4 changes: 4 additions & 0 deletions packages/keychain/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ export default function Keychain({ Component, pageProps }: AppProps) {
--font-inter: ${inter.style.fontFamily};
--font-ibm-plex-mono: ${ibmPlexMono.style.fontFamily};
}
body {
background: var(--chakra-colors-solid-bg);
}
`}</style>

<Provider>
Expand Down

0 comments on commit ea1cb2c

Please sign in to comment.