Skip to content

Commit 567c4cc

Browse files
committed
clean up code
1 parent 4e27f32 commit 567c4cc

File tree

4 files changed

+3
-75
lines changed

4 files changed

+3
-75
lines changed

src/components/pages/PageCart/components/AddressForm.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/components/pages/PageOrder/PageOrder.tsx

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,7 @@ import TableBody from "@mui/material/TableBody";
2222
import TableContainer from "@mui/material/TableContainer";
2323

2424
const Form = (props: FormikProps<FormikValues>) => {
25-
const {
26-
values,
27-
// touched,
28-
// errors,
29-
dirty,
30-
isSubmitting,
31-
isValid,
32-
// handleChange,
33-
// handleBlur,
34-
handleSubmit,
35-
// handleReset,
36-
// setFieldValue,
37-
// isEditMode,
38-
// onCancel,
39-
// isButtonContact,
40-
// setTouched,
41-
// isButtonAddAndRedirect,
42-
// setShouldRedirect,
43-
// submitForm,
44-
// onGetCitizen,
45-
// shouldConfirmLeave,
46-
} = props;
25+
const { values, dirty, isSubmitting, isValid, handleSubmit } = props;
4726
let helperText = "";
4827
if (values.status === ORDER_STATUS.approved) {
4928
helperText =

src/components/pages/PageProductForm/PageProductForm.tsx

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,7 @@ import Typography from "@mui/material/Typography";
1111
import API_PATHS from "~/constants/apiPaths";
1212

1313
const Form = (props: FormikProps<FormikValues>) => {
14-
const {
15-
// values,
16-
// touched,
17-
// errors,
18-
dirty,
19-
isSubmitting,
20-
isValid,
21-
// handleChange,
22-
// handleBlur,
23-
handleSubmit,
24-
// handleReset,
25-
// setFieldValue,
26-
// isEditMode,
27-
// onCancel,
28-
// isButtonContact,
29-
// setTouched,
30-
// isButtonAddAndRedirect,
31-
// setShouldRedirect,
32-
// submitForm,
33-
// onGetCitizen,
34-
// shouldConfirmLeave,
35-
} = props;
14+
const { dirty, isSubmitting, isValid, handleSubmit } = props;
3615
const navigate = useNavigate();
3716
return (
3817
<form onSubmit={handleSubmit} autoComplete="off">

src/components/pages/admin/PageProductImport/components/CSVFileImport.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function CSVFileImport({ url, title }: CSVFileImportProps) {
2222
setFile("");
2323
};
2424

25-
const uploadFile = async (e: any) => {
25+
const uploadFile = async () => {
2626
// Get the presigned URL
2727
const response = await axios({
2828
method: "GET",

0 commit comments

Comments
 (0)