fix: remove unused imports flagged by TypeScript
This commit is contained in:
parent
ab02fb120c
commit
dea930dbc4
5 changed files with 3 additions and 23 deletions
|
|
@ -40,11 +40,6 @@ const formSchema = z.object({
|
|||
|
||||
type FormValues = z.infer<typeof formSchema>;
|
||||
|
||||
const PRICE_BOUNDS = {
|
||||
[ListingType.RENT]: { min: 0, max: 10000, step: 50 },
|
||||
[ListingType.BUY]: { min: 0, max: 2000000, step: 10000 },
|
||||
} as const;
|
||||
|
||||
// ── Props ──
|
||||
interface FilterBarProps {
|
||||
onSubmit: (action: 'fetch-data' | 'visualize', parameters: ParameterValues) => void;
|
||||
|
|
@ -94,7 +89,6 @@ export function FilterBar({
|
|||
onPoiTravelFiltersChange,
|
||||
listingType,
|
||||
onListingTypeChange,
|
||||
poiPickerActive,
|
||||
onPoiPickerActiveChange,
|
||||
pickedPoiLocation,
|
||||
onPickedPoiLocationChange,
|
||||
|
|
@ -161,11 +155,6 @@ export function FilterBar({
|
|||
[form, onSubmit, currentMetric, selectedFurnishTypes],
|
||||
);
|
||||
|
||||
/** Public getter so App can read current form values (e.g. for FilterChips) */
|
||||
const getValues = useCallback((): ParameterValues => {
|
||||
return readFormParams(form.getValues(), currentMetric, selectedFurnishTypes);
|
||||
}, [form, currentMetric, selectedFurnishTypes]);
|
||||
|
||||
const toggleFurnishType = (type: FurnishType) => {
|
||||
setSelectedFurnishTypes((prev) =>
|
||||
prev.includes(type) ? prev.filter((t) => t !== type) : [...prev, type],
|
||||
|
|
|
|||
|
|
@ -11,15 +11,6 @@ interface ListingDetailProps {
|
|||
onClearDecision: () => void;
|
||||
}
|
||||
|
||||
function TravelModeIcon({ mode }: { mode: string }) {
|
||||
switch (mode) {
|
||||
case 'WALK': return <Footprints className="h-3 w-3" />;
|
||||
case 'BICYCLE': return <Bike className="h-3 w-3" />;
|
||||
case 'TRANSIT': return <Train className="h-3 w-3" />;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
function TravelModeLabel({ mode }: { mode: string }) {
|
||||
switch (mode) {
|
||||
case 'WALK': return 'Walk';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { useState, useCallback, useEffect } from 'react';
|
||||
import useEmblaCarousel from 'embla-carousel-react';
|
||||
import { ExternalLink, Heart, Bed, Maximize2, Clock, Footprints, Bike, Train } from 'lucide-react';
|
||||
import { ExternalLink, Footprints, Bike, Train } from 'lucide-react';
|
||||
import type { PropertyProperties, POIDistanceInfo, POI } from '@/types';
|
||||
import { formatDuration } from '@/utils/format';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { TaskStatus, type TaskResult, type TaskState } from '@/types';
|
||||
import { TaskStatus, type TaskState } from '@/types';
|
||||
import { useEffect, useState, useRef, useMemo } from 'react';
|
||||
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './ui/tooltip';
|
||||
import { Button } from './ui/button';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue