File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,11 @@ import { scc } from "@/core/command";
5
5
import { DatabaseSchemaItem } from "@/drivers/base-driver" ;
6
6
import { triggerEditorExtensionTab } from "@/extensions/trigger-editor" ;
7
7
import { ExportFormat , exportTableData } from "@/lib/export-helper" ;
8
- import { Table } from "@phosphor-icons/react" ;
8
+ import { Icon , Table } from "@phosphor-icons/react" ;
9
9
import { LucideCog , LucideDatabase , LucideView } from "lucide-react" ;
10
10
import { useCallback , useEffect , useMemo , useState } from "react" ;
11
11
import { ListView , ListViewItem } from "../listview" ;
12
+ import { CloudflareIcon } from "../resource-card/icon" ;
12
13
import SchemaCreateDialog from "./schema-editor/schema-create" ;
13
14
14
15
interface SchemaListProps {
@@ -39,12 +40,17 @@ function prepareListViewItem(
39
40
let icon = Table ;
40
41
let iconClassName = "" ;
41
42
43
+ console . log ( "ss" , s ) ;
44
+
42
45
if ( s . type === "trigger" ) {
43
46
icon = LucideCog ;
44
47
iconClassName = "text-purple-500" ;
45
48
} else if ( s . type === "view" ) {
46
49
icon = LucideView ;
47
50
iconClassName = "text-green-600 dark:text-green-300" ;
51
+ } else if ( s . type === "table" && s . name === "_cf_KV" ) {
52
+ icon = CloudflareIcon as Icon ;
53
+ iconClassName = "text-orange-500" ;
48
54
}
49
55
50
56
return {
Original file line number Diff line number Diff line change @@ -6,11 +6,8 @@ import {
6
6
} from "@/components/ui/context-menu" ;
7
7
import { OpenContextMenuList } from "@/core/channel-builtin" ;
8
8
import { cn } from "@/lib/utils" ;
9
- import {
10
- LucideChevronDown ,
11
- LucideChevronRight ,
12
- LucideIcon ,
13
- } from "lucide-react" ;
9
+ import { Icon } from "@phosphor-icons/react" ;
10
+ import { LucideChevronDown , LucideChevronRight } from "lucide-react" ;
14
11
import React , {
15
12
Dispatch ,
16
13
Fragment ,
@@ -24,7 +21,7 @@ import HighlightText from "../ui/highlight-text";
24
21
export interface ListViewItem < T = unknown > {
25
22
key : string ;
26
23
name : string ;
27
- icon : LucideIcon ;
24
+ icon : Icon ;
28
25
iconColor ?: string ;
29
26
iconBadgeColor ?: string ;
30
27
data : T ;
You can’t perform that action at this time.
0 commit comments