diff --git a/package.json b/package.json index 15c2c1b..78ba7d2 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "format": "prettier 'src/**/*.{tsx,ts,js}' --write" }, "dependencies": { - "@mdi/js": "^7.0.96", + "@mdi/js": "^7.4.47", "@reduxjs/toolkit": "^1.9.5", "chart.js": "^4.4.0", "formik": "^2.4.2", diff --git a/src/components/Inventories/InventoryList.tsx b/src/components/Inventories/InventoryList.tsx new file mode 100644 index 0000000..6ae4c8d --- /dev/null +++ b/src/components/Inventories/InventoryList.tsx @@ -0,0 +1,9 @@ +import { Inventory } from '../../models/inventory' + +interface InventoryListProp { + data: Inventory[] +} + +export const InventoryList = (props: InventoryListProp) => { + return <> +} diff --git a/src/layouts/Authenticated.tsx b/src/layouts/Authenticated.tsx index fad95fc..f34a540 100644 --- a/src/layouts/Authenticated.tsx +++ b/src/layouts/Authenticated.tsx @@ -84,17 +84,6 @@ export default function LayoutAuthenticated({ children }: Props) { onAsideLgClose={() => setIsAsideLgActive(false)} /> {children} - - Get more with{` `} - - Premium version - - ) diff --git a/src/menuAside.ts b/src/menuAside.ts index 4f81048..9e2d208 100644 --- a/src/menuAside.ts +++ b/src/menuAside.ts @@ -1,28 +1,17 @@ -import { - mdiAccountCircle, - mdiMonitor, - mdiGithub, - mdiLock, - mdiAlertCircle, - mdiSquareEditOutline, - mdiTable, - mdiViewList, - mdiTelevisionGuide, - mdiResponsive, - mdiPalette, - mdiVuejs, -} from '@mdi/js' +import { mdiMonitor, mdiStorageTank } from '@mdi/js' import { MenuAsideItem } from './interfaces' -const menuAside: MenuAsideItem[] = [{ - href: '/dashboard', +const menuAside: MenuAsideItem[] = [ + { + href: '/dashboard', icon: mdiMonitor, - label: 'Dashboard' -},{ - href: '/inventories', - icon: mdiViewList, - label: 'Inventories', -} + label: 'Dashboard', + }, + { + href: '/inventories', + icon: mdiStorageTank, + label: 'Inventories', + }, // { // href: '/dashboard', // icon: mdiMonitor, diff --git a/src/models/inventory.ts b/src/models/inventory.ts new file mode 100644 index 0000000..30e4c01 --- /dev/null +++ b/src/models/inventory.ts @@ -0,0 +1,4 @@ +export interface Inventory { + id: string + name: string +} diff --git a/src/pages/inventories/index.tsx b/src/pages/inventories/index.tsx index 7bbdfbc..06a18c9 100644 --- a/src/pages/inventories/index.tsx +++ b/src/pages/inventories/index.tsx @@ -1,11 +1,8 @@ -import { mdiGithub, mdiMonitorCellphone, mdiTableBorder, mdiTableOff } from '@mdi/js' +import { mdiTableBorder } from '@mdi/js' import Head from 'next/head' import React, { ReactElement } from 'react' -import Button from '../../components/Button' import CardBox from '../../components/CardBox' -import CardBoxComponentEmpty from '../../components/CardBox/Component/Empty' import LayoutAuthenticated from '../../layouts/Authenticated' -import NotificationBar from '../../components/NotificationBar' import SectionMain from '../../components/Section/Main' import SectionTitleLineWithButton from '../../components/Section/TitleLineWithButton' import TableSampleClients from '../../components/Table/SampleClients' @@ -20,23 +17,9 @@ const TablesPage = () => { - - Responsive table. Collapses on mobile - - - - - - - Empty card. When there's nothing to show - - - - - ) diff --git a/yarn.lock b/yarn.lock index e711a02..a2bf9f3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -114,7 +114,7 @@ resolved "https://registry.yarnpkg.com/@kurkle/color/-/color-0.3.2.tgz#5acd38242e8bde4f9986e7913c8fdf49d3aa199f" integrity sha512-fuscdXJ9G1qb7W8VdHi+IwRqij3lBkosAm4ydQtEmbY58OzHXqQhvlxqEkoz0yssNVn38bcpRWgA9PP+OGoisw== -"@mdi/js@^7.0.96": +"@mdi/js@^7.4.47": version "7.4.47" resolved "https://registry.yarnpkg.com/@mdi/js/-/js-7.4.47.tgz#7d8a4edc9631bffeed80d1ec784f9beae559a76a" integrity sha512-KPnNOtm5i2pMabqZxpUz7iQf+mfrYZyKCZ8QNz85czgEt7cuHcGorWfdzUMWYA0SD+a6Hn4FmJ+YhzzzjkTZrQ== @@ -2550,16 +2550,7 @@ streamsearch@^1.1.0: resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764" integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== -"string-width-cjs@npm:string-width@^4.2.0": - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -string-width@^4.1.0: +"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -2623,14 +2614,7 @@ string.prototype.trimstart@^1.0.8: define-properties "^1.2.1" es-object-atoms "^1.0.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1": - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==