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 React from "react";
|
||||||
|
import { ConfigProvider, theme } from 'antd';
|
||||||
|
|
||||||
export default function LoginLayout({
|
export default function LoginLayout({
|
||||||
children
|
children
|
||||||
@@ -6,8 +9,18 @@ export default function LoginLayout({
|
|||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}>) {
|
}>) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<ConfigProvider
|
||||||
<main>{children}</main>
|
theme={{
|
||||||
</div>
|
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