Skip to content

Commit

Permalink
Add nullable and not-null icon to TableNode
Browse files Browse the repository at this point in the history
  • Loading branch information
sasamuku committed Dec 3, 2024
1 parent b2d57dc commit 43fcb83
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type { Table } from '@liam-hq/db-structure'
import {
DiamondFillIcon,
DiamondIcon,
DrawerClose,
DrawerContent,
DrawerPortal,
Expand Down Expand Up @@ -39,6 +41,25 @@ export const TableNode: FC<Props> = ({ data: { table } }) => {
/>
)}
</span>
{!column.primary && (
<span>
{column.notNull ? (
<DiamondFillIcon
width={16}
height={16}
role="img"
aria-label="Not Null"
/>
) : (
<DiamondIcon
width={16}
height={16}
role="img"
aria-label="Nullable"
/>
)}
</span>
)}
<span> </span>
<span>{column.name}</span>
<span> </span>
Expand Down

0 comments on commit 43fcb83

Please sign in to comment.