mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
Update layout.tsx
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import React from "react";
|
||||
import { ConfigProvider, theme } from 'antd';
|
||||
|
||||
export default function LoginLayout({
|
||||
children
|
||||
@@ -6,8 +9,18 @@ export default function LoginLayout({
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<div>
|
||||
<main>{children}</main>
|
||||
</div>
|
||||
<ConfigProvider
|
||||
theme={{
|
||||
token: {
|
||||
colorPrimary: '#6f42c1',
|
||||
borderRadius: 6,
|
||||
},
|
||||
algorithm: theme.defaultAlgorithm,
|
||||
}}
|
||||
>
|
||||
<div style={{ width: '100%', height: '100%' }}>
|
||||
<main style={{ width: '100%', height: '100%' }}>{children}</main>
|
||||
</div>
|
||||
</ConfigProvider>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user