From 18e5e8e9c71ac19f5524f1a69816395ac7bf0fd5 Mon Sep 17 00:00:00 2001 From: FunamaYukina Date: Thu, 19 Dec 2024 15:32:08 +0900 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Remove=20LinkIcon=20and=20?= =?UTF-8?q?replace=20its=20usage=20with=20Link=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/.changeset/calm-coats-smoke.md | 7 +++++ .../TableColumn/TableColumn.tsx | 5 ++-- frontend/packages/ui/src/icons/LinkIcon.tsx | 26 ------------------- frontend/packages/ui/src/icons/index.ts | 3 +-- 4 files changed, 11 insertions(+), 30 deletions(-) create mode 100644 frontend/.changeset/calm-coats-smoke.md delete mode 100644 frontend/packages/ui/src/icons/LinkIcon.tsx diff --git a/frontend/.changeset/calm-coats-smoke.md b/frontend/.changeset/calm-coats-smoke.md new file mode 100644 index 00000000..774b22c1 --- /dev/null +++ b/frontend/.changeset/calm-coats-smoke.md @@ -0,0 +1,7 @@ +--- +"@liam-hq/erd-core": patch +"@liam-hq/ui": patch +"@liam-hq/cli": patch +--- + +♻️ Remove LinkIcon and replace its usage with Link component diff --git a/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/TableNode/TableColumnList/TableColumn/TableColumn.tsx b/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/TableNode/TableColumnList/TableColumn/TableColumn.tsx index b2a2074d..f57aa2d9 100644 --- a/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/TableNode/TableColumnList/TableColumn/TableColumn.tsx +++ b/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/TableNode/TableColumnList/TableColumn/TableColumn.tsx @@ -2,7 +2,7 @@ import type { Cardinality as CardinalityType, Column, } from '@liam-hq/db-structure' -import { DiamondFillIcon, DiamondIcon, KeyRound, LinkIcon } from '@liam-hq/ui' +import { DiamondFillIcon, DiamondIcon, KeyRound, Link } from '@liam-hq/ui' import { Handle, Position } from '@xyflow/react' import clsx from 'clsx' import type { FC } from 'react' @@ -39,12 +39,13 @@ export const TableColumn: FC = ({ /> )} {!column.primary && (isSource || targetCardinality) ? ( - ) : !column.primary && column.notNull ? ( - -export const LinkIcon: FC = (props) => { - return ( - - - - - ) -} diff --git a/frontend/packages/ui/src/icons/index.ts b/frontend/packages/ui/src/icons/index.ts index e8431cda..dee2d8f7 100644 --- a/frontend/packages/ui/src/icons/index.ts +++ b/frontend/packages/ui/src/icons/index.ts @@ -9,7 +9,6 @@ export * from './DiamondFillIcon' export * from './Download' export * from './Fingerprint' export * from './GotoIcon' -export * from './LinkIcon' export * from './Megaphone' export * from './MessagesSquare' export * from './Minus' @@ -26,4 +25,4 @@ export * from './CardinalityZeroOrOneLeftIcon' export * from './Eye' export * from './EyeClosed' -export { KeyRound, Hash } from 'lucide-react' +export { KeyRound, Hash, Link } from 'lucide-react'