2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-13 08:21:26 +00:00

[React] Use typed paths (#5686)

* Use typed paths for all tables

* Refactor usage of useInstance hook

* Refactor URLs for existing forms

* More URL fixes

* Further URL fixes
This commit is contained in:
Oliver
2023-10-12 00:13:37 +11:00
committed by GitHub
parent 149e5c3696
commit bf7c1b43bd
31 changed files with 205 additions and 114 deletions

View File

@ -7,7 +7,7 @@ import { editPart } from '../../../functions/forms/PartForms';
import { notYetImplemented } from '../../../functions/notifications';
import { shortenString } from '../../../functions/tables';
import { useTableRefresh } from '../../../hooks/TableRefresh';
import { ThumbnailHoverCard } from '../../items/Thumbnail';
import { ApiPaths, url } from '../../../states/ApiState';
import { TableColumn } from '../Column';
import { TableFilter } from '../Filter';
import { InvenTreeTable, InvenTreeTableProps } from '../InvenTreeTable';
@ -221,7 +221,7 @@ export function PartListTable({ props }: { props: InvenTreeTableProps }) {
return (
<InvenTreeTable
url="part/"
url={url(ApiPaths.part_list)}
tableKey={tableKey}
columns={tableColumns}
props={{