Skip to content

Commit

Permalink
adas
Browse files Browse the repository at this point in the history
  • Loading branch information
Linh Nguyen committed Jun 27, 2024
1 parent 4eb878a commit 3cbb7ca
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 71 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions src/components/Inventories/InventoryList.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Inventory } from '../../models/inventory'

interface InventoryListProp {
data: Inventory[]
}

export const InventoryList = (props: InventoryListProp) => {
return <></>
}
11 changes: 0 additions & 11 deletions src/layouts/Authenticated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,6 @@ export default function LayoutAuthenticated({ children }: Props) {
onAsideLgClose={() => setIsAsideLgActive(false)}
/>
{children}
<FooterBar>
Get more with{` `}
<a
href="https://tailwind-react.justboil.me/dashboard"
target="_blank"
rel="noreferrer"
className="text-blue-600"
>
Premium version
</a>
</FooterBar>
</div>
</div>
)
Expand Down
33 changes: 11 additions & 22 deletions src/menuAside.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 4 additions & 0 deletions src/models/inventory.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface Inventory {
id: string
name: string
}
19 changes: 1 addition & 18 deletions src/pages/inventories/index.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -20,23 +17,9 @@ const TablesPage = () => {
<SectionMain>
<SectionTitleLineWithButton icon={mdiTableBorder} title="Inventories" main />

<NotificationBar color="info" icon={mdiMonitorCellphone}>
<b>Responsive table.</b> Collapses on mobile
</NotificationBar>

<CardBox className="mb-6" hasTable>
<TableSampleClients />
</CardBox>

<SectionTitleLineWithButton icon={mdiTableOff} title="Empty variation" />

<NotificationBar color="danger" icon={mdiTableOff}>
<b>Empty card.</b> When there&apos;s nothing to show
</NotificationBar>

<CardBox>
<CardBoxComponentEmpty />
</CardBox>
</SectionMain>
</>
)
Expand Down
22 changes: 3 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==
Expand Down Expand Up @@ -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==
Expand Down Expand Up @@ -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==
Expand Down

0 comments on commit 3cbb7ca

Please sign in to comment.