Remove redundant files and update pnpm lockfile
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
type LanguagePriority = 'user' | 'application';
|
||||
|
||||
const FeatureFlagsSchema = z.object({
|
||||
enableThemeToggle: z.boolean({
|
||||
description: 'Enable theme toggle in the user interface.',
|
||||
@@ -83,9 +85,8 @@ const featuresFlagConfig = FeatureFlagsSchema.parse({
|
||||
process.env.NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS_BILLING,
|
||||
false,
|
||||
),
|
||||
languagePriority: process.env.NEXT_PUBLIC_LANGUAGE_PRIORITY as
|
||||
| 'user'
|
||||
| 'application',
|
||||
languagePriority: process.env
|
||||
.NEXT_PUBLIC_LANGUAGE_PRIORITY as LanguagePriority,
|
||||
enableNotifications: getBoolean(
|
||||
process.env.NEXT_PUBLIC_ENABLE_NOTIFICATIONS,
|
||||
true,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CreditCard, Home, User } from 'lucide-react';
|
||||
|
||||
import { SidebarConfigSchema } from '@kit/ui/sidebar-schema';
|
||||
import { NavigationConfigSchema } from '@kit/ui/navigation-schema';
|
||||
|
||||
import featureFlagsConfig from '~/config/feature-flags.config';
|
||||
import pathsConfig from '~/config/paths.config';
|
||||
@@ -29,6 +29,7 @@ if (featureFlagsConfig.enablePersonalAccountBilling) {
|
||||
});
|
||||
}
|
||||
|
||||
export const personalAccountSidebarConfig = SidebarConfigSchema.parse({
|
||||
export const personalAccountNavigationConfig = NavigationConfigSchema.parse({
|
||||
routes,
|
||||
style: process.env.NEXT_PUBLIC_USER_NAVIGATION_STYLE,
|
||||
});
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CreditCard, LayoutDashboard, Settings, Users } from 'lucide-react';
|
||||
|
||||
import { SidebarConfigSchema } from '@kit/ui/sidebar-schema';
|
||||
import { NavigationConfigSchema } from '@kit/ui/navigation-schema';
|
||||
|
||||
import featureFlagsConfig from '~/config/feature-flags.config';
|
||||
import pathsConfig from '~/config/paths.config';
|
||||
@@ -40,8 +40,9 @@ const getRoutes = (account: string) => [
|
||||
];
|
||||
|
||||
export function getTeamAccountSidebarConfig(account: string) {
|
||||
return SidebarConfigSchema.parse({
|
||||
return NavigationConfigSchema.parse({
|
||||
routes: getRoutes(account),
|
||||
style: process.env.NEXT_PUBLIC_TEAM_NAVIGATION_STYLE,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user