diff --git a/src/App.jsx b/src/App.jsx index fabe536..8753075 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -71,8 +71,8 @@ const App = ({ children, location, navigate }) => { array: true, }) const [schedule, setSchedule] = useQuery("schedule", false) - const [startDate, setStartDate] = useQuery("startDate", false) - const [endDate, setEndDate] = useQuery("endDate", false) + const [startDate, setStartDate] = useQuery("start_date", false) + const [endDate, setEndDate] = useQuery("end_date", false) const [days, setDays] = useQuery("days", [], { array: true }) const [startTime, setStartTime] = useQuery("start_time", [], { array: true }) const [endTime, setEndTime] = useQuery("end_time", [], { array: true }) diff --git a/src/components/Filter/ScheduleFilter.jsx b/src/components/Filter/ScheduleFilter.jsx index cd4c58e..3dd0858 100644 --- a/src/components/Filter/ScheduleFilter.jsx +++ b/src/components/Filter/ScheduleFilter.jsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from "react" +import React, { useState } from "react" import styled from "styled-components" import { Outer, @@ -6,14 +6,10 @@ import { Header, UnfoldButton, Content, - Label, - InputCheckbox, - Field, RadioLabel, RadioField, InputRadio, } from "./layout" -import { set } from "react-ga" const ColumnContent = styled(Content)` display: grid; diff --git a/src/lib/api.js b/src/lib/api.js index 5fdb786..779a057 100644 --- a/src/lib/api.js +++ b/src/lib/api.js @@ -101,6 +101,8 @@ export const fetchServiceDataFromApi = async ( needs, accessibilities, suitabilities, + start_date, + end_date, days, start_time, end_time, @@ -125,6 +127,8 @@ export const fetchServiceDataFromApi = async ( needs, accessibilities, suitabilities, + start_date, + end_date, days, start_time, end_time,