Update layout.tsx

This commit is contained in:
BaiCai
2025-04-27 22:03:43 +08:00
committed by Junyan Qin
parent 18152fe04b
commit ef207f9435

View File

@@ -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>
)
}