Kesavaraja Krishnan 2024-04-26 20:56:15 +10:00 zatwierdzone przez GitHub
commit cbef8da01f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 29 dodań i 0 usunięć

Wyświetl plik

@ -76,6 +76,35 @@ const CustomUi = track(() => {
>
Eraser
</button>
<button
className="custom-button"
data-isactive={editor.getCurrentToolId() === 'line'}
onClick={() => editor.setCurrentTool('line')}
>
Line
</button>
<button className="custom-button" data-isactive={editor.getCurrentToolId()==='text' } onClick={()=>
editor.setCurrentTool('text')}
>
Text
</button>
<button
className="custom-button"
data-isactive={editor.getCurrentToolId() === 'arrow'}
onClick={() => editor.setCurrentTool('arrow')}
>
Arrow
</button>
<button
className="custom-button"
data-isactive={editor.getCurrentToolId() === 'highlight'}
onClick={() => editor.setCurrentTool('highlight')}
>
Highlight
</button>
</div>
</div>
)