Skip to content

Commit

Permalink
Remove session info from signup (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura authored Jun 20, 2024
1 parent 52abbc2 commit cc8b319
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export function RegistrationLink({
fontWeight="medium"
color="link.blue"
fontSize="xs"
borderWidth={1}
>
{children}
</Button>
Expand Down
2 changes: 1 addition & 1 deletion packages/keychain/src/components/connect/Signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function Form({ isSlot, onLogin, onSuccess }: SignupProps) {
</FormikField>
</Content>

<Footer isSlot={isSlot} createSession>
<Footer isSlot={isSlot} isSignup>
{error && (
<ErrorAlert title="Login failed" description={error.message} />
)}
Expand Down
10 changes: 8 additions & 2 deletions packages/keychain/src/components/layout/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ import { TransactionSummary } from "./TransactionSummary";
import { isIframe } from "components/connect/utils";
import { useConnection } from "hooks/connection";
import { TOP_BAR_HEIGHT } from "../Container/Header/TopBar";
import NextLink from "next/link";

export function Footer({
children,
isSlot = false,
isSignup,
createSession = false,
}: React.PropsWithChildren & {
isSlot?: boolean;
isSignup?: boolean;
createSession?: boolean;
}) {
const { setFooterHeight } = useLayout();
Expand All @@ -35,8 +38,8 @@ export function Footer({
const { isOpen, onToggle } = useDisclosure();
const variant = useLayoutVariant();
const isExpandable = useMemo(
() => !!origin && !!policies.length && variant === "connect",
[origin, policies, variant],
() => !!origin && !!policies.length && variant === "connect" && !isSignup,
[origin, policies, variant, isSignup],
);
const hostname = useMemo(
() => (origin ? new URL(origin).hostname : undefined),
Expand Down Expand Up @@ -149,6 +152,9 @@ export function Footer({
h={FOOTER_HEIGHT / 4}
gap={1}
opacity={0.5}
as={NextLink}
href="https://cartridge.gg"
target="_blank"
>
<Text fontSize="xs" color="currentColor">
Controller by
Expand Down

0 comments on commit cc8b319

Please sign in to comment.