Skip to content

Commit

Permalink
fix: account page layout (#1647)
Browse files Browse the repository at this point in the history
  • Loading branch information
therealemjy authored Oct 24, 2023
1 parent 2f03472 commit aabb907
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/containers/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const Layout: React.FC<LayoutProps> = ({ children }) => {
>
<Header />

<main className="w-full flex-1 px-4 pb-4 md:px-6 xl:mx-auto xl:max-w-[1360px] xl:px-10">
<main className="w-full shrink-0 grow px-4 pb-4 md:px-6 xl:mx-auto xl:max-w-[1360px] xl:px-10">
{children}
</main>

Expand Down
10 changes: 6 additions & 4 deletions src/pages/Account/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ const Account: React.FC = () => {
const isPrimeEnabled = useIsFeatureEnabled({ name: 'prime' });

return (
<>
{isPrimeEnabled && <PrimeStatusBanner className="mb-10 lg:mb-14" />}
<div className="flex h-full flex-col">
{isPrimeEnabled && <PrimeStatusBanner className="mb-10 flex-none lg:mb-14" />}

<AccountBreakdown />
</>
<div className="flex-auto">
<AccountBreakdown />
</div>
</div>
);
};

Expand Down

0 comments on commit aabb907

Please sign in to comment.