Better map

This commit is contained in:
cracklesparkle
2024-10-29 15:08:23 +09:00
parent 115c6ec417
commit f51835584d
20 changed files with 685 additions and 444 deletions

View File

@ -3,7 +3,7 @@ import { useRoles } from '../hooks/swrHooks'
import { CreateField } from '../interfaces/create'
import RoleService from '../services/RoleService'
import FormFields from '../components/FormFields'
import { Button, Flex, Loader, Modal, Table } from '@mantine/core'
import { Button, Loader, Modal, ScrollAreaAutosize, Table } from '@mantine/core'
import { useDisclosure } from '@mantine/hooks'
export default function Roles() {
@ -26,7 +26,7 @@ export default function Roles() {
if (isLoading) return <Loader />
return (
<Flex direction='column' align='flex-start' gap='sm' p='sm'>
<ScrollAreaAutosize w={'100%'} h={'100%'} p='sm'>
<Button onClick={open}>
Добавить роль
</Button>
@ -78,6 +78,6 @@ export default function Roles() {
onProcessRowUpdateError={() => {
}}
/> */}
</Flex>
</ScrollAreaAutosize>
)
}