Skip to content

Commit

Permalink
fix(core): UX improvements for account pages
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-yevhenii-buliuk committed Nov 11, 2024
1 parent a8da829 commit bee0653
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .changeset/slimy-months-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bigcommerce/catalyst-core": patch
---

UX improvements for account pages
4 changes: 0 additions & 4 deletions core/app/[locale]/(default)/account/(tabs)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useTranslations } from 'next-intl';
import { setRequestLocale } from 'next-intl/server';
import { PropsWithChildren } from 'react';

Expand All @@ -13,11 +12,8 @@ interface Props extends PropsWithChildren {
export default function AccountTabLayout({ children, params: { locale } }: Props) {
setRequestLocale(locale);

const t = useTranslations('Account.Home');

return (
<>
<h1 className="my-8 text-4xl font-black lg:my-8 lg:text-5xl">{t('heading')}</h1>
<TabNavigation />
{children}
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ export default function ChangePassword({ params: { locale } }: Props) {
setRequestLocale(locale);

return (
<>
<div className="mx-auto lg:w-2/3">
<TabHeading heading="settings" />
<div className="mx-auto lg:w-2/3">
<ChangePasswordForm />
</div>
</>
<ChangePasswordForm />
</div>
);
}

Expand Down
8 changes: 3 additions & 5 deletions core/app/[locale]/(default)/account/(tabs)/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ export default async function Settings() {
}

return (
<>
<div className="mx-auto lg:w-2/3">
<TabHeading heading="settings" />
<div className="mx-auto lg:w-2/3">
<UpdateSettingsForm {...customerSettings} />
</div>
</>
<UpdateSettingsForm {...customerSettings} />
</div>
);
}

Expand Down

0 comments on commit bee0653

Please sign in to comment.