Update labels and refine hooks for teams and billing modules

This commit modifies several language labels and refines hooks related to 'teams' and 'billing' modules for better clarity and consistency. It also includes the deletion of unused locale files and package dependencies transfered to 'peerDependencies'. Lastly, it introduces minor enhancements in server command, error logging functionality, and scripts to interact with Stripe.
This commit is contained in:
giancarlo
2024-03-26 23:32:28 +08:00
parent 4032aed827
commit e402caff30
52 changed files with 1227 additions and 1049 deletions

View File

@@ -9,7 +9,7 @@ const features = {
};
const paths = {
callback: pathsConfig.auth.callback,
callback: pathsConfig.auth.callback + `?next=${pathsConfig.app.accountHome}`,
};
function PersonalAccountSettingsPage() {

View File

@@ -22,10 +22,12 @@ export function SiteHeaderAccountSection(
session: Session | null;
}>,
) {
if (!props.session) {
return <AuthButtons />;
}
return (
<Suspense fallback={<AuthButtons />}>
<SuspendedPersonalAccountDropdown session={props.session} />
</Suspense>
<SuspendedPersonalAccountDropdown session={props.session} />
);
}

View File

@@ -4,7 +4,7 @@ import { SiteHeaderAccountSection } from '~/(marketing)/_components/site-header-
import { SiteNavigation } from '~/(marketing)/_components/site-navigation';
import { AppLogo } from '~/components/app-logo';
export async function SiteHeader(props: { session?: Session | null }) {
export function SiteHeader(props: { session?: Session | null }) {
return (
<div className={'container mx-auto'}>
<div className="flex h-16 items-center justify-between">

View File

@@ -1,3 +1,5 @@
import { GlobalLoader } from '@kit/ui/global-loader';
export default GlobalLoader;
import { withI18n } from '~/lib/i18n/with-i18n';
export default withI18n(GlobalLoader);

View File

@@ -30,9 +30,8 @@ export default async function RootLayout({
<html lang={lang} className={getClassName()}>
<body>
<RootProviders lang={lang}>{children}</RootProviders>
<Toaster richColors={false} />
</body>
<Toaster richColors={false} />
</html>
);
}