From 34e6f7bdf9bac671b115d0a57c20673bd0d28fa1 Mon Sep 17 00:00:00 2001 From: Dave Earley Date: Fri, 16 Aug 2024 23:09:04 -0700 Subject: [PATCH] Add open check-in link --- frontend/src/components/common/CheckInListList/index.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/common/CheckInListList/index.tsx b/frontend/src/components/common/CheckInListList/index.tsx index 713aec7e..c8f21eb6 100644 --- a/frontend/src/components/common/CheckInListList/index.tsx +++ b/frontend/src/components/common/CheckInListList/index.tsx @@ -1,7 +1,7 @@ import {CheckInList, IdParam} from "../../../types"; import {Badge, Button, Progress} from "@mantine/core"; import {t, Trans} from "@lingui/macro"; -import {IconCopy, IconHelp, IconPencil, IconPlus, IconTrash} from "@tabler/icons-react"; +import {IconCopy, IconExternalLink, IconHelp, IconLink, IconPencil, IconPlus, IconTrash} from "@tabler/icons-react"; import Truncate from "../Truncate"; import {NoResultsSplash} from "../NoResultsSplash"; import classes from './CheckInListList.module.scss'; @@ -161,6 +161,13 @@ export const CheckInListList = ({checkInLists, openCreateModal}: CheckInListList showSuccess(t`Check-In URL copied to clipboard`); }); } + }, + { + label: t`Open Check-In Page`, + icon: , + onClick: () => { + window.open(`/check-in/${list.short_id}`, '_blank'); + } } ], },