created modal component and Create role Modal Form #101
Annotations
10 errors and 1 warning
eslint:
app/components/CreateRoleFormModal/CreateRoleForm.tsx#L1
Replace `C,·useState·}·from·'react'` with `orm·}·from·"@remix-run/react"`
|
eslint:
app/components/CreateRoleFormModal/CreateRoleForm.tsx#L2
Replace `orm·}·from·'@remix-run/react';` with `C,·useState·}·from·"react";⏎`
|
eslint:
app/components/CreateRoleFormModal/CreateRoleForm.tsx#L3
Replace `'./CreateRoleModal'` with `"./CreateRoleModal"`
|
eslint:
app/components/CreateRoleFormModal/CreateRoleForm.tsx#L5
The variable `CreateRoleFormProps` should be named `CreateRoleFormProperties`. A more descriptive name will do too
|
|
|
eslint:
app/components/CreateRoleFormModal/CreateRoleForm.tsx#L11
Replace `··const·[roleName,·setRoleName]·=·useState(''` with `const·[roleName,·setRoleName]·=·useState(""`
|
eslint:
app/components/CreateRoleFormModal/CreateRoleForm.tsx#L12
Replace `····const·[roleDescription,·setRoleDescription]·=·useState(''` with `··const·[roleDescription,·setRoleDescription]·=·useState(""`
|
|
eslint:
app/components/CreateRoleFormModal/CreateRoleForm.tsx#L14
Please rename the variable `e`. Suggested names are: `error`, `event_`. A more descriptive name will do too
|
eslint:
app/components/CreateRoleFormModal/CreateRoleModal.tsx#L9
'onClose' is defined but never used. Allowed unused args must match /^_/u
|