MSP-3074 add antd theme
This commit is contained in:
1 parent
9f7fa17af1
commit
5f73d33a58
6 files changed
+984
-49
No files matched your search
@@ -1,5 +1,7 @@
|
||||
|
||||
import Layout from '../Layout/Layout.tsx';
|
||||
function HomePages() {
|
||||
return <div>HomePages</div>;
|
||||
return <Layout />;
|
||||
}
|
||||
|
||||
export default HomePages;
|
||||
@@ -0,0 +1,22 @@
|
||||
import { App, Button } from 'antd';
|
||||
import { useTheme } from 'antd-style';
|
||||
|
||||
|
||||
|
||||
const Layout= () => {
|
||||
const theme = useTheme();
|
||||
return (
|
||||
<App>
|
||||
<div style={{
|
||||
background: theme.colorBgLayout,
|
||||
minHeight: '100vh'
|
||||
}}>
|
||||
<Button ghost type={'primary'}>
|
||||
Border
|
||||
</Button>
|
||||
<Button type={'primary'}>Primary</Button>
|
||||
</div>
|
||||
</App>
|
||||
);
|
||||
};
|
||||
export default Layout;
|
||||
Reference in new issue
Block a user