|
|
@ -39,6 +39,8 @@ const CrudList = < |
|
|
|
renderDeleteItem, |
|
|
|
renderDeleteItem, |
|
|
|
renderEditForm, |
|
|
|
renderEditForm, |
|
|
|
renderListItem, |
|
|
|
renderListItem, |
|
|
|
|
|
|
|
// Dependents
|
|
|
|
|
|
|
|
entryUrlPrefix = entriesUrl, |
|
|
|
} = props; |
|
|
|
} = props; |
|
|
|
|
|
|
|
|
|
|
|
const addDialogRef = useRef<DialogForwardedRefContent>(null); |
|
|
|
const addDialogRef = useRef<DialogForwardedRefContent>(null); |
|
|
@ -72,7 +74,7 @@ const CrudList = < |
|
|
|
|
|
|
|
|
|
|
|
const { fetch: getEntry, loading: loadingEntry } = useActiveFetch<Detail>({ |
|
|
|
const { fetch: getEntry, loading: loadingEntry } = useActiveFetch<Detail>({ |
|
|
|
onData: (data) => setEntry(data), |
|
|
|
onData: (data) => setEntry(data), |
|
|
|
url: entriesUrl, |
|
|
|
url: entryUrlPrefix, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
const addHeader = useMemo<React.ReactNode>( |
|
|
|
const addHeader = useMemo<React.ReactNode>( |
|
|
|