This commit is contained in:
ivan-sim
2023-10-24 16:10:47 +07:00
parent 33d3bdab37
commit 134cdb072d
12 changed files with 193 additions and 24 deletions

View File

@@ -1,16 +1,11 @@
import { Card, Grid } from "@mui/material";
import { useParams } from "react-router-dom";
import { Card } from "@mui/material";
import HeaderBreadcrumbs from "../../../components/HeaderBreadcrumbs";
import Page from "../../../components/Page";
import useSettings from "../../../hooks/useSettings";
import List from "./List";
import List from "./List2";
export default function Drugs() {
const { themeStretch } = useSettings();
const { corporate_id } = useParams();
const pageTitle = 'Drug';
return (
@@ -20,8 +15,8 @@ export default function Drugs() {
heading={ pageTitle }
links={[
{
name: 'Master',
href: '/master',
name: 'Pharmacy & Delivery Management',
href: '/',
},
{
name: 'Drug',

View File

@@ -14,6 +14,7 @@ import axios from '../../../utils/axios';
import { LaravelPaginatedData } from '../../../@types/paginated-data';
import { Icd } from '../../../@types/diagnosis';
import BasePagination from '../../../components/BasePagination';
import { enqueueSnackbar } from 'notistack';
export default function List() {
const { themeStretch } = useSettings();
@@ -42,7 +43,7 @@ export default function List() {
return (
<form onSubmit={handleSearchSubmit} style={{ width: '100%' }}>
<TextField id="search-input" ref={searchInput} label="Search" variant="outlined" fullWidth onChange={handleSearchChange} value={searchText}/>
<TextField id="search-input" ref={searchInput} label="Search Code or Name" variant="outlined" fullWidth onChange={handleSearchChange} value={searchText}/>
</form>
);
}
@@ -109,7 +110,6 @@ export default function List() {
<input type='file' id='file' ref={importForm} style={{ display: 'none' }} onChange={handleImportChange} accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, text/plain" />
{( !currentImportFileName && <Stack direction={'row'} spacing={2} sx={{ p: 2 }}>
<SearchInput onSearch={applyFilter}/>
{/* <h1>kjasndkjandskjasndkjansdkjansd</h1> */}
<Button
id="import-button"
variant='outlined'