From 0ee6f3f406477ee50f256f087029d0deb0b22241 Mon Sep 17 00:00:00 2001 From: hunghg255 Date: Sun, 20 Oct 2024 13:45:28 +0700 Subject: [PATCH] fix: codeblock --- .../components/CodeBlockActiveButton.tsx | 28 ++++++++----------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/src/extensions/CodeBlock/components/CodeBlockActiveButton.tsx b/src/extensions/CodeBlock/components/CodeBlockActiveButton.tsx index f8d66a9..c097e93 100644 --- a/src/extensions/CodeBlock/components/CodeBlockActiveButton.tsx +++ b/src/extensions/CodeBlock/components/CodeBlockActiveButton.tsx @@ -3,10 +3,10 @@ import React, { useMemo } from 'react' import type { BundledLanguage } from 'shiki' import { ActionButton, - Select, - SelectContent, - SelectItem, - SelectTrigger, + DropdownMenu, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuTrigger, } from '@/components' import { MAP_LANGUAGE_CODE_LABELS } from '@/constants' @@ -40,30 +40,26 @@ function CodeBlockActiveButton({ action, languages, ...props }: Props) { }, [languages]) return ( - + + ) }