Skip to content

Commit 6673829

Browse files
committed
chore: change div to span to fix invalid html
1 parent 616cf91 commit 6673829

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/client/editor/Editor.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ export const Editor: FC<EditorProps> = ({
9696
<div className="flex items-center gap-2">
9797
<DropdownMenu>
9898
<DropdownMenuTrigger className="flex w-fit min-w-[140px] cursor-pointer items-center justify-between rounded-md border bg-surface-primary px-2 py-1.5 text-content-secondary transition-colors hover:text-content-primary data-[state=open]:text-content-primary">
99-
<div className="flex items-center justify-center gap-2">
99+
<span className="flex items-center justify-center gap-2 text-xs">
100100
<ZapIcon width={18} height={18} />
101-
<span className="text-xs">Snippets</span>
102-
</div>
101+
Snippets
102+
</span>
103103
<PlusIcon width={18} height={18} />
104104
</DropdownMenuTrigger>
105105

@@ -122,10 +122,10 @@ export const Editor: FC<EditorProps> = ({
122122

123123
<DropdownMenu>
124124
<DropdownMenuTrigger className="flex w-fit min-w-[140px] cursor-pointer items-center justify-between rounded-md border bg-surface-primary px-2 py-1.5 text-content-secondary transition-colors hover:text-content-primary data-[state=open]:text-content-primary">
125-
<div className="flex items-center justify-center gap-2">
125+
<span className="flex items-center justify-center gap-2 text-xs">
126126
<NotebookPenIcon width={18} height={18} />
127-
<span className="text-xs">Examples</span>
128-
</div>
127+
Example
128+
</span>
129129
<ChevronDownIcon width={18} height={18} />
130130
</DropdownMenuTrigger>
131131

0 commit comments

Comments
 (0)