Skip to content

Commit

Permalink
Remove unused state and import in VehicleScheduler and VehicleSchedul…
Browse files Browse the repository at this point in the history
…erFilter components
  • Loading branch information
aelassas committed Jan 23, 2025
1 parent da49f00 commit 1b2da23
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions backend/src/components/VehicleScheduler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const VehicleScheduler = (
language,
}: VehicleSchedulerProps
) => {
const [remoteQuery, setRemoteQuery] = useState<RemoteQuery>()
const [filter, setFilter] = useState<bookcarsTypes.Filter>()
const [init, setInit] = useState(true)

Expand All @@ -38,8 +37,6 @@ const VehicleScheduler = (
}, [filterFromProps])

const fetchBookings = useCallback(async (query: RemoteQuery): Promise<ProcessedEvent[]> => {
setRemoteQuery(query)

const payload: bookcarsTypes.GetBookingsPayload = {
suppliers,
statuses,
Expand Down
1 change: 0 additions & 1 deletion backend/src/components/VehicleSchedulerFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import * as bookcarsHelper from ':bookcars-helper'
import { strings as commonStrings } from '@/lang/common'
import { strings } from '@/lang/booking-filter'
import LocationSelectList from './LocationSelectList'
import DatePicker from './DatePicker'
import Accordion from '@/components/Accordion'

import '@/assets/css/vehicle-scheduler-filter.css'
Expand Down

0 comments on commit 1b2da23

Please sign in to comment.