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:
@ -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={{
|
||||
|
Reference in New Issue
Block a user