Refactor layout and home page for improved localization and session handling
- Updated RootLayout to include locale support and integrated ThemeProvider and LocaleProvider for better internationalization. - Replaced static home page content with a redirect based on user session status, enhancing user experience by directing to the appropriate dashboard or login page. - Switched font from Geist to Inter for improved typography consistency.
This commit is contained in:
13
apps/webui/src/app/dashboard/[guildId]/access/page.tsx
Normal file
13
apps/webui/src/app/dashboard/[guildId]/access/page.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { AccessRulesForm } from '@/components/settings/access-rules-form';
|
||||
import { listAccessRules } from '@/lib/access-rules';
|
||||
|
||||
interface AccessPageProps {
|
||||
params: Promise<{ guildId: string }>;
|
||||
}
|
||||
|
||||
export default async function GuildAccessPage({ params }: AccessPageProps) {
|
||||
const { guildId } = await params;
|
||||
const rules = await listAccessRules(guildId);
|
||||
|
||||
return <AccessRulesForm guildId={guildId} initialRules={rules} />;
|
||||
}
|
||||
Reference in New Issue
Block a user