add prettier
This commit is contained in:
1 parent
6a9a45a4cc
commit
07fc6c0b6c
35 files changed
+530
-461
No files matched your search
@@ -1,5 +1,5 @@
|
||||
.main {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center
|
||||
justify-content: center;
|
||||
}
|
||||
@@ -1,24 +1,28 @@
|
||||
import {Button, theme} from 'antd';
|
||||
import useRole from '../../hooks/useRole.tsx';
|
||||
import {PermissionKeys} from '../../types/roles.type.ts';
|
||||
import { Button, theme } from 'antd'
|
||||
|
||||
import useRole from '../../hooks/useRole.tsx'
|
||||
import { PermissionKeys } from '../../types/roles.type.ts'
|
||||
import './home.scss'
|
||||
|
||||
|
||||
const HomePages = () => {
|
||||
const {hasPermission} = useRole();
|
||||
const {useToken} = theme;
|
||||
const {token} = useToken();
|
||||
const { hasPermission } = useRole()
|
||||
const { useToken } = theme
|
||||
const { token } = useToken()
|
||||
|
||||
const isPageAvailable = hasPermission(PermissionKeys.user_view);
|
||||
const isPageAvailable = hasPermission(PermissionKeys.user_view)
|
||||
|
||||
return (
|
||||
<main className="main" style={{backgroundColor: token.colorBgLayout}}>
|
||||
{isPageAvailable && <Button ghost type="primary">
|
||||
Border
|
||||
</Button>}
|
||||
<div>Проверка шрифтов</div>
|
||||
<Button type="primary">Primary</Button>
|
||||
</main>
|
||||
);
|
||||
};
|
||||
return (
|
||||
<main className="main" style={{ backgroundColor: token.colorBgLayout }}>
|
||||
{isPageAvailable && (
|
||||
<Button ghost type="primary">
|
||||
Border
|
||||
</Button>
|
||||
)}
|
||||
<div>Проверка шрифтов</div>
|
||||
<Button type="primary">Primary</Button>
|
||||
</main>
|
||||
)
|
||||
}
|
||||
|
||||
export default HomePages;
|
||||
export default HomePages
|
||||
Reference in new issue
Block a user