Skip to content

Commit

Permalink
test date calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-DELESQUES committed Feb 7, 2024
1 parent 8ac214d commit 59a4800
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/src/components/parents/CalendarParents.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
import { MobileDatePicker } from "@mui/x-date-pickers/MobileDatePicker";
import { MobileTimePicker } from "@mui/x-date-pickers/MobileTimePicker";
import { frFR } from "@mui/x-date-pickers/locales";
import { DemoContainer, DemoItem } from "@mui/x-date-pickers/internals/demo";
import { frFR } from "@mui/x-date-pickers/locales";
import axios from "axios";
import dayjs from "dayjs";
import React, { useEffect, useState } from "react";
import "../../styles/calendarparents.scss";
import axios from "axios";
import { useNavigate } from "react-router-dom";
import "../../styles/calendarparents.scss";

function CalendarParents() {
const [chooseDate, setChooseDate] = useState(null);
Expand Down Expand Up @@ -59,8 +59,8 @@ function CalendarParents() {
parentId,
startTime: arrivalTime,
endTime: departureTime,
reservationDateStart: chooseDate,
reservationDateEnd: chooseDate,
reservationDateStart: dayjs(chooseDate).format("YYYY-MM-DD"),
reservationDateEnd: dayjs(chooseDate).format("YYYY-MM-DD"),
prices: price,
}
);
Expand Down

0 comments on commit 59a4800

Please sign in to comment.