Remove unused components in student transaction filter

This commit is contained in:
Keannu Bernasol 2023-12-22 15:34:13 +08:00
parent fc9d92259e
commit b76b1e17fb

View file

@ -10,16 +10,12 @@ import {
import HourglassBottomIcon from "@mui/icons-material/HourglassBottom"; import HourglassBottomIcon from "@mui/icons-material/HourglassBottom";
import CheckCircleIcon from "@mui/icons-material/CheckCircle"; import CheckCircleIcon from "@mui/icons-material/CheckCircle";
import FlashOffIcon from "@mui/icons-material/FlashOff"; import FlashOffIcon from "@mui/icons-material/FlashOff";
import Popup from "reactjs-popup";
import AddItemModal from "../../AddItemModal/AddItemModal";
import AddSKUModal from "../../AddSKUModal/AddSKUModal";
import CheckCircleOutlineIcon from "@mui/icons-material/CheckCircleOutline"; import CheckCircleOutlineIcon from "@mui/icons-material/CheckCircleOutline";
import ShoppingCartCheckoutIcon from "@mui/icons-material/ShoppingCartCheckout"; import ShoppingCartCheckoutIcon from "@mui/icons-material/ShoppingCartCheckout";
import AssignmentReturnedIcon from "@mui/icons-material/AssignmentReturned"; import AssignmentReturnedIcon from "@mui/icons-material/AssignmentReturned";
import CancelOutlinedIcon from "@mui/icons-material/CancelOutlined"; import CancelOutlinedIcon from "@mui/icons-material/CancelOutlined";
import CancelIcon from "@mui/icons-material/Cancel"; import CancelIcon from "@mui/icons-material/Cancel";
import ClearAllIcon from "@mui/icons-material/ClearAll"; import ClearAllIcon from "@mui/icons-material/ClearAll";
import { useState } from "react";
type props = { type props = {
filter: string; filter: string;
@ -27,8 +23,6 @@ type props = {
}; };
export default function StudentTransactionFilterMenu(props: props) { export default function StudentTransactionFilterMenu(props: props) {
const [addSKUmodalOpen, SetAddSKUModalOpen] = useState(false);
const [additemmodalOpen, SetAddItemModalOpen] = useState(false);
return ( return (
<> <>
<p <p
@ -51,7 +45,7 @@ export default function StudentTransactionFilterMenu(props: props) {
}} }}
> >
<FormControl sx={{ width: "384px" }}> <FormControl sx={{ width: "384px" }}>
<InputLabel style={{ backgroundColor: "white" }}> <InputLabel style={{ backgroundColor: "white", padding: 0 }}>
Filter Transactions Filter Transactions
</InputLabel> </InputLabel>
<Select <Select
@ -389,54 +383,6 @@ export default function StudentTransactionFilterMenu(props: props) {
</Select> </Select>
</FormControl> </FormControl>
</div> </div>
<div
style={{
...styles.flex_row,
...{
alignSelf: "center",
justifyContent: "center",
flexWrap: "wrap",
},
}}
></div>
<Popup
open={addSKUmodalOpen}
onClose={() => SetAddSKUModalOpen(false)}
modal
position={"top center"}
contentStyle={{
width: "32rem",
borderRadius: 16,
borderColor: "grey",
borderStyle: "solid",
borderWidth: 1,
padding: 16,
alignContent: "center",
justifyContent: "center",
textAlign: "center",
}}
>
<AddSKUModal />
</Popup>
<Popup
open={additemmodalOpen}
onClose={() => SetAddItemModalOpen(false)}
modal
position={"top center"}
contentStyle={{
width: "32rem",
borderRadius: 16,
borderColor: "grey",
borderStyle: "solid",
borderWidth: 1,
padding: 16,
alignContent: "center",
justifyContent: "center",
textAlign: "center",
}}
>
<AddItemModal />
</Popup>
</> </>
); );
} }