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:
10
src/frontend/lib/components/AddItemButton.tsx
Normal file
10
src/frontend/lib/components/AddItemButton.tsx
Normal 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 />} />;
|
||||
}
|
||||
Reference in New Issue
Block a user