2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-11-14 03:46:44 +00:00

[PUI] Refactor "notYetImplemented" (#7913)

* Remove default "not yet implemented" action

- Will force us to manually add "not yet implemented"
- Intended to highlight where we still need to work

* Refactor more components

* Fix for onClick
This commit is contained in:
Oliver
2024-08-19 21:01:05 +10:00
committed by GitHub
parent 4b140aba8d
commit a7d9600c3d
48 changed files with 223 additions and 255 deletions

View File

@@ -20,7 +20,7 @@ import {
} from '../ColumnRenderers';
import { TableFilter } from '../Filter';
import { InvenTreeTable } from '../InvenTreeTable';
import { RowDeleteAction, RowEditAction } from '../RowActions';
import { RowAction, RowDeleteAction, RowEditAction } from '../RowActions';
/**
* Render a table of allocated stock for a build.
@@ -155,7 +155,7 @@ export default function BuildAllocatedStockTable({
});
const rowActions = useCallback(
(record: any) => {
(record: any): RowAction[] => {
return [
RowEditAction({
hidden: !user.hasChangeRole(UserRoles.build),