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:
@@ -9,7 +9,7 @@ const features = {
|
||||
};
|
||||
|
||||
const paths = {
|
||||
callback: pathsConfig.auth.callback,
|
||||
callback: pathsConfig.auth.callback + `?next=${pathsConfig.app.accountHome}`,
|
||||
};
|
||||
|
||||
function PersonalAccountSettingsPage() {
|
||||
|
||||
@@ -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} />
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user