2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-01-31 02:23:50 +00:00

[plugin] Library updates (#10070)

* Expose lingui modules to plugins

* Add i18n object to plugin context

* Expose form types

* Update package.json requirements

* Externalize react and mantine when building @inventreedb/ui components

* Externalize lingui packages too

* Extern <AddItemButton />
This commit is contained in:
Oliver
2025-07-25 01:23:34 +10:00
committed by GitHub
parent a301214ac9
commit 0e0abf2d75
55 changed files with 945 additions and 868 deletions

View File

@@ -0,0 +1,10 @@
import { IconPlus } from '@tabler/icons-react';
import { ActionButton, type ActionButtonProps } from './ActionButton';
/**
* A generic icon button which is used to add or create a new item
*/
export function AddItemButton(props: Readonly<ActionButtonProps>) {
return <ActionButton {...props} color='green' icon={<IconPlus />} />;
}