MSP-3074 add antd theme

This commit is contained in:
Anastasiia committed 2024-03-26 14:59:35 +03:00
1 parent 9f7fa17af1
commit 5f73d33a58
6 files changed
+984 -49

No files matched your search

+3 -1
View File
@@ -1,5 +1,7 @@
import Layout from '../Layout/Layout.tsx';
function HomePages() {
return <div>HomePages</div>;
return <Layout />;
}
export default HomePages;
+22
View File
@@ -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;