Skip to content

Commit

Permalink
Update SupplierList.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Oct 5, 2023
1 parent 69c776f commit d4ff4a0
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions backend/src/components/SupplierList.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
import React, { useState, useEffect } from 'react'
import {
IconButton, Button, Dialog, DialogTitle, DialogContent, DialogActions, Tooltip, Card, CardContent, Typography
IconButton,
Button,
Dialog,
DialogTitle,
DialogContent,
DialogActions,
Tooltip,
Card,
CardContent,
Typography
} from '@mui/material'
import { Visibility as ViewIcon, Edit as EditIcon, Delete as DeleteIcon } from '@mui/icons-material'
import * as bookcarsTypes from 'bookcars-types'
Expand All @@ -16,18 +25,18 @@ import Pager from './Pager'
import '../assets/css/company-list.css'

function SupplierList({
user,
keyword: supplierListKeyword,
reload: supplierListReload,
onDelete,
onLoad
}: {
user?: bookcarsTypes.User
keyword?: string
reload?: boolean
onLoad?: bookcarsTypes.DataEvent<bookcarsTypes.User>
onDelete?: (rowCount: number) => void
}) {
user,
keyword: supplierListKeyword,
reload: supplierListReload,
onDelete,
onLoad
}: {
user?: bookcarsTypes.User
keyword?: string
reload?: boolean
onLoad?: bookcarsTypes.DataEvent<bookcarsTypes.User>
onDelete?: (rowCount: number) => void
}) {
const [keyword, setKeyword] = useState(supplierListKeyword)
const [reload, setReload] = useState(false)
const [init, setInit] = useState(true)
Expand Down

0 comments on commit d4ff4a0

Please sign in to comment.