create coupon

This commit is contained in:
hamid zarghami
2025-12-06 16:38:41 +03:30
parent f397560312
commit 6447177b05
13 changed files with 630 additions and 3 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ const DatePickerComponent: FC<Props> = (props: Props) => {
useEffect(() => {
if (value) {
const formattedDate = `${value.year}/${value.month.number}/${value.day}`;
const formattedDate = `${value.year}-${value.month.number}-${value.day}`;
props.onChange(formattedDate);
}
// eslint-disable-next-line react-hooks/exhaustive-deps