فهرست منبع

135366 change handler name

soumaeda 2 سال پیش
والد
کامیت
91f809689f
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      packages/editor/src/components/CodeMirrorEditor/Toolbar/DiagramButton.tsx

+ 2 - 2
packages/editor/src/components/CodeMirrorEditor/Toolbar/DiagramButton.tsx

@@ -4,11 +4,11 @@ import { useDrawioModalForEditor } from '../../../stores/use-drawio';
 
 export const DiagramButton = (): JSX.Element => {
   const { open: openDrawioModal } = useDrawioModalForEditor();
-  const onClickOpenDrawioModal = useCallback(() => {
+  const onClickDiagramButton = useCallback(() => {
     openDrawioModal();
   }, [openDrawioModal]);
   return (
-    <button type="button" className="btn btn-toolbar-button" onClick={onClickOpenDrawioModal}>
+    <button type="button" className="btn btn-toolbar-button" onClick={onClickDiagramButton}>
       <span className="material-symbols-outlined fs-5">lan</span>
     </button>
   );