|
1 | | -import { useAllLinkTypes } from '../../hooks/projects.hooks'; |
2 | | -import LoadingIndicator from '../LoadingIndicator'; |
3 | | -import ErrorPage from '../../pages/ErrorPage'; |
| 1 | +import { useAllLinkTypes } from '../../../hooks/projects.hooks'; |
| 2 | +import LoadingIndicator from '../../../components/LoadingIndicator'; |
| 3 | +import ErrorPage from '../../ErrorPage'; |
4 | 4 | import { IconButton, MenuItem, Select, TextField } from '@mui/material'; |
5 | 5 | import { FieldArrayWithId, UseFieldArrayAppend, UseFieldArrayRemove, UseFormRegister, UseFormWatch } from 'react-hook-form'; |
6 | 6 | import DeleteIcon from '@mui/icons-material/Delete'; |
7 | | -import { getRequiredLinkTypeNames } from '../../utils/link.utils'; |
8 | | -import { ProjectFormInput } from '../../pages/ProjectDetailPage/ProjectForm/ProjectForm'; |
| 7 | +import { getRequiredLinkTypeNames } from '../../../utils/link.utils'; |
| 8 | +import { ProjectFormInput } from './ProjectForm'; |
9 | 9 | import { Box } from '@mui/system'; |
10 | | -import { NERButton } from '../NERButton'; |
| 10 | +import { NERButton } from '../../../components/NERButton'; |
11 | 11 |
|
12 | 12 | const LinksEditView: React.FC<{ |
13 | 13 | ls: FieldArrayWithId[]; |
14 | 14 | register: UseFormRegister<ProjectFormInput>; |
15 | 15 | watch: UseFormWatch<ProjectFormInput>; |
16 | | - append: UseFieldArrayAppend<any, any>; |
| 16 | + append: UseFieldArrayAppend<ProjectFormInput, 'links'>; |
17 | 17 | remove: UseFieldArrayRemove; |
18 | 18 | }> = ({ ls, register, append, remove, watch }) => { |
19 | 19 | const { isLoading, isError, error, data: linkTypes } = useAllLinkTypes(); |
|
0 commit comments