Skip to content

Commit

Permalink
refactor: add types
Browse files Browse the repository at this point in the history
  • Loading branch information
Pinx0 committed Nov 6, 2024
1 parent beb5770 commit 38428b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/app/casos-activos/mapa/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import SolicitudCard from '@/components/SolicitudCard';
import { useRouter, useSearchParams } from 'next/navigation';
import { tiposAyudaOptions } from '@/helpers/constants';
import Map, { PinMapa } from '@/components/map/map';
// @ts-ignore
import PickupPoint from '@/components/PickupPoint';
import { useTowns } from '@/context/TownProvider';

Expand Down Expand Up @@ -98,7 +97,6 @@ export default function Mapa() {
const pickupMarkers = pickupData.map(transformPickupRequestToMarker);
allData.push(...(pickupMarkers || []));
}

setData(allData);
} catch (err) {
console.log('Error general:', err);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { MapPin } from 'lucide-react';

const PickupPoint = ({ point }) => {
type PickupPointProps = {
point: any;
};
const PickupPoint = ({ point }: PickupPointProps) => {
return (
<div className="bg-white p-4 rounded-lg shadow-lg border-l-4 border-blue-500">
<div className="flex flex-col sm:flex-row justify-between items-start gap-2 mb-4">
Expand Down

0 comments on commit 38428b2

Please sign in to comment.