@@ -135,7 +140,6 @@ export default function ItineraryDay({ day, dayIndex, isEditing }: PropsT) {
: open("viewMarker", { markerId: location.id })
: undefined
}
- disabled={!location}
>
{location ? (
{location?.name || "Unknown Location"}
{location?.notes && (
-
- {location.notes}
-
+ {location.notes}
)}
-
+
{isEditing && (
-
+
{index !== locations.length - 1 && (
-
+
)}
{index !== 0 && (
-
+
)}
-
+
)}
@@ -192,10 +194,10 @@ export default function ItineraryDay({ day, dayIndex, isEditing }: PropsT) {
)}
{isEditing && (
-
diff --git a/frontend/components/LifelistCard.tsx b/frontend/components/LifelistCard.tsx
index 304a610c..b143c081 100644
--- a/frontend/components/LifelistCard.tsx
+++ b/frontend/components/LifelistCard.tsx
@@ -1,6 +1,6 @@
import React from "react";
import toast from "react-hot-toast";
-import Button from "components/Button";
+import { Button } from "components/ui/button";
import Icon from "components/Icon";
import { parseLifelistCsv } from "lib/lifelistCsv";
@@ -48,8 +48,7 @@ export default function LifelistCard({ label, count, onImport, onRemove, disable
fileRef.current?.click()}
disabled={disabled}
className="text-sm"
diff --git a/frontend/components/MerlinLink.tsx b/frontend/components/MerlinLink.tsx
deleted file mode 100644
index 35d37f79..00000000
--- a/frontend/components/MerlinLink.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import clsx from "clsx";
-
-type MerlinLinkPropsT = {
- children: React.ReactNode;
- className?: string;
- code: string;
-};
-
-export default function MerlinkLink({ code, children, className }: MerlinLinkPropsT) {
- return (
- <>
-
- {children}
-
-
- {children}
-
- >
- );
-}
diff --git a/frontend/components/Notice.tsx b/frontend/components/Notice.tsx
index 1e8b27e9..54f64390 100644
--- a/frontend/components/Notice.tsx
+++ b/frontend/components/Notice.tsx
@@ -1,5 +1,6 @@
import { Link, useLocation } from "react-router-dom";
-import CloseButton from "components/CloseButton";
+import { Button } from "components/ui/button";
+import { XIcon } from "lucide-react";
import { useUser } from "hooks/useUser";
import useMutation from "hooks/useMutation";
import { useQueryClient } from "@tanstack/react-query";
@@ -49,7 +50,14 @@ export default function Notice() {
{" "}
and targets for any upcoming trips.
- dismissMutation.mutate({ dismissedNoticeId: noticeId })} />
+ dismissMutation.mutate({ dismissedNoticeId: noticeId })}
+ aria-label="Close"
+ >
+
+
);
diff --git a/frontend/components/ObsList.tsx b/frontend/components/ObsList.tsx
index 8211a584..54f4e238 100644
--- a/frontend/components/ObsList.tsx
+++ b/frontend/components/ObsList.tsx
@@ -1,6 +1,6 @@
import React from "react";
import Icon from "components/Icon";
-import Button from "components/Button";
+import { Button } from "components/ui/button";
import { dateTimeToRelative } from "lib/helpers";
import { useTrip } from "hooks/useTrip";
import dayjs from "dayjs";
@@ -79,9 +79,9 @@ export default function ObsList({ hotspotId, speciesCode }: Props) {