first commit

This commit is contained in:
2026-05-23 13:22:10 +03:30
parent 5f9ee72174
commit 6591a52f27
52 changed files with 3937 additions and 133 deletions

32
ui/DateFilter.tsx Normal file
View File

@@ -0,0 +1,32 @@
import { DatePicker } from "@mui/x-date-pickers/DatePicker";
import { TextField, Box } from "@mui/material";
const DateFilters = ({
startDate,
setStartDate,
endDate,
setEndDate,
}: {
startDate: any;
setStartDate: any;
endDate: any;
setEndDate: any;
}) => {
return (
<Box sx={{ display: "flex", gap: 2, my: 2 }}>
<DatePicker
label="از تاریخ"
value={startDate}
onChange={(newValue) => setStartDate(newValue)}
slotProps={{ textField: { fullWidth: true } }}
/>
<DatePicker
label="تا تاریخ"
value={endDate}
onChange={(newValue) => setEndDate(newValue)}
slotProps={{ textField: { fullWidth: true } }}
/>
</Box>
);
};
export default DateFilters;