Build & serve
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
import { SubmitHandler, useForm } from 'react-hook-form';
|
||||
import { IRoleCreate } from '../../interfaces/role';
|
||||
import { AxiosResponse } from 'axios';
|
||||
import { ApiResponse } from '../../interfaces/auth';
|
||||
import RoleService from '../../services/RoleService';
|
||||
import { Box, Button, Modal, TextField, Typography } from '@mui/material';
|
||||
|
||||
@ -38,7 +36,7 @@ export default function CreateRoleModal({
|
||||
|
||||
const onSubmit: SubmitHandler<IRoleCreate> = async (data) => {
|
||||
try {
|
||||
const response: AxiosResponse<ApiResponse> = await RoleService.createRole(data)
|
||||
await RoleService.createRole(data)
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
}
|
||||
|
Reference in New Issue
Block a user