⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
remove duplicate functions
Isaac76112534f617
diff --git a/components/InputSelect/ArchivalTagSelection.tsx b/components/InputSelect/ArchivalTagSelection.tsxindex 3f4a1854..e1b4137a 100644--- a/components/InputSelect/ArchivalTagSelection.tsx+++ b/components/InputSelect/ArchivalTagSelection.tsx@@ -2,27 +2,6 @@ import CreatableSelect from "react-select/creatable";import { styles } from "./styles";import { useTranslation } from "next-i18next";import { ArchivalTagOption } from "./types";-import { Tag } from "@prisma/client";---export const transformTag = (tag: Tag) => ({- label: tag.name,- value: tag.id,- archiveAsScreenshot: tag.archiveAsScreenshot || false,- archiveAsMonolith: tag.archiveAsMonolith || false,- archiveAsPDF: tag.archiveAsPDF || false,- archiveAsReadable: tag.archiveAsReadable || false,- archiveAsWaybackMachine: tag.archiveAsWaybackMachine || false,- aiTag: tag.aiTag || false,-});--export const isArchivalTag = (tag: Tag) =>- tag.archiveAsScreenshot ||- tag.archiveAsMonolith ||- tag.archiveAsPDF ||- tag.archiveAsReadable ||- tag.archiveAsWaybackMachine ||- tag.aiTag;type Props = {options: ArchivalTagOption[] | []