Skip to content

Commit

Permalink
Create session footer should not expand
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura committed Aug 16, 2024
1 parent 632209c commit 8cdb347
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/keychain/src/components/layout/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,15 @@ export function Footer({
const { origin, policies } = useConnection();
const { variant, footer } = useLayout();
const isExpandable = useMemo(
() => !!origin && !!policies.length && variant === "connect" && !isSignup,
[origin, policies, variant, isSignup],
() => !!origin && !!policies.length && variant === "connect" && !isSignup && !hideTxSummary,
[origin, policies, variant, isSignup, hideTxSummary],
);
const hostname = useMemo(
() => (origin ? new URL(origin).hostname : undefined),
[origin],
);
const maxH = `${
(isIframe() ? window.innerHeight : PORTAL_WINDOW_HEIGHT) - TOP_BAR_HEIGHT
}px`;
const maxH = `${(isIframe() ? window.innerHeight : PORTAL_WINDOW_HEIGHT) - TOP_BAR_HEIGHT
}px`;

useEffect(() => {
if (!ref.current) return;
Expand Down

0 comments on commit 8cdb347

Please sign in to comment.