Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): UX improvements for account pages #1617

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Loading