File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
packages/frontend/src/pages/Tile/components/TableBanner Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 11import { useCallback } from 'react'
2+ import { BiTable } from 'react-icons/bi'
23import { FaChevronRight } from 'react-icons/fa'
34import { Link } from 'react-router-dom'
45import {
@@ -10,12 +11,17 @@ import {
1011
1112import EditableInput from '@/components/EditableInput'
1213import * as URLS from '@/config/urls'
14+ import { DatabaseType } from '@/graphql/__generated__/graphql'
1315
1416import { useTableContext } from '../../contexts/TableContext'
1517import { useUpdateTable } from '../../hooks/useUpdateTable'
1618
1719function BreadCrumb ( ) {
18- const { tableName : initialTableName , hasEditPermission } = useTableContext ( )
20+ const {
21+ tableName : initialTableName ,
22+ hasEditPermission,
23+ databaseType,
24+ } = useTableContext ( )
1925 const { updateTableName } = useUpdateTable ( )
2026
2127 const onSave = useCallback (
@@ -31,8 +37,14 @@ function BreadCrumb() {
3137 separator = { < Icon as = { FaChevronRight } color = "secondary.300" h = { 3 } /> }
3238 >
3339 < BreadcrumbItem >
34- < BreadcrumbLink as = { Link } to = { URLS . TILES } >
35- Tiles
40+ < BreadcrumbLink
41+ as = { Link }
42+ to = { URLS . TILES }
43+ display = "flex"
44+ alignItems = "center"
45+ gap = { 2 }
46+ >
47+ { databaseType === DatabaseType . Pg && < Icon as = { BiTable } /> } Tiles
3648 </ BreadcrumbLink >
3749 </ BreadcrumbItem >
3850 < EditableInput
You can’t perform that action at this time.
0 commit comments