diff --git a/assets/icons/filamentskuicon.svg b/assets/icons/filamentskuicon.svg new file mode 100644 index 0000000..59c490e --- /dev/null +++ b/assets/icons/filamentskuicon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/src/components/Dashboard/Inventory/OrderItems/NewOrderItem.jsx b/src/components/Dashboard/Inventory/OrderItems/NewOrderItem.jsx index 4cc3a6b..1da0f5f 100644 --- a/src/components/Dashboard/Inventory/OrderItems/NewOrderItem.jsx +++ b/src/components/Dashboard/Inventory/OrderItems/NewOrderItem.jsx @@ -46,6 +46,34 @@ const NewOrderItem = ({ onOk, reset, defaultValues }) => { /> ) }, + + { + title: 'Optional', + key: 'optional', + content: ( + + ) + }, { title: 'Pricing', key: 'pricing', @@ -67,32 +95,6 @@ const NewOrderItem = ({ onOk, reset, defaultValues }) => { /> ) }, - { - title: 'Optional', - key: 'optional', - content: ( - - ) - }, { title: 'Summary', key: 'summary', diff --git a/src/components/Dashboard/Management/FilamentSkus.jsx b/src/components/Dashboard/Management/FilamentSkus.jsx new file mode 100644 index 0000000..acd9d20 --- /dev/null +++ b/src/components/Dashboard/Management/FilamentSkus.jsx @@ -0,0 +1,104 @@ +import { useState, useRef } from 'react' + +import { Button, Flex, Space, Modal, Dropdown } from 'antd' + +import NewFilamentSku from './FilamentSkus/NewFilamentSku' +import PlusIcon from '../../Icons/PlusIcon' +import ReloadIcon from '../../Icons/ReloadIcon' +import useColumnVisibility from '../hooks/useColumnVisibility' +import ObjectTable from '../common/ObjectTable' +import ListIcon from '../../Icons/ListIcon' +import GridIcon from '../../Icons/GridIcon' +import useViewMode from '../hooks/useViewMode' +import ColumnViewButton from '../common/ColumnViewButton' +import ExportListButton from '../common/ExportListButton' + +const FilamentSkus = () => { + const tableRef = useRef() + + const [newFilamentSkuOpen, setNewFilamentSkuOpen] = useState(false) + + const [viewMode, setViewMode] = useViewMode('filamentSkus') + + const [columnVisibility, setColumnVisibility] = + useColumnVisibility('filamentSku') + + const actionItems = { + items: [ + { + label: 'New Filament SKU', + key: 'newFilamentSku', + icon: + }, + { type: 'divider' }, + { + label: 'Reload List', + key: 'reloadList', + icon: + } + ], + onClick: ({ key }) => { + if (key === 'reloadList') { + tableRef.current?.reload() + } else if (key === 'newFilamentSku') { + setNewFilamentSkuOpen(true) + } + } + } + + return ( + <> + + + + + + + + + + +