feat: Use dialog component for clear canvas instead of window confirm (#4075)

* feat: Use dialog component for clear canvas instead of window confirm

* reduce font weight

* fix specs

* update button name and use action

* export clearCanvas from actions
This commit is contained in:
Aakansha Doshi 2021-10-21 17:35:28 +05:30 committed by GitHub
parent 6eecadce60
commit 0f0244224d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 123 additions and 21 deletions

View file

@ -136,7 +136,9 @@
"darkMode": "Dark mode",
"lightMode": "Light mode",
"zenMode": "Zen mode",
"exitZenMode": "Exit zen mode"
"exitZenMode": "Exit zen mode",
"cancel": "Cancel",
"clear": "Clear"
},
"alerts": {
"clearReset": "This will clear the whole canvas. Are you sure?",
@ -256,6 +258,9 @@
"zoomToFit": "Zoom to fit all elements",
"zoomToSelection": "Zoom to selection"
},
"clearCanvasDialog": {
"title": "Clear Canvas"
},
"encrypted": {
"tooltip": "Your drawings are end-to-end encrypted so Excalidraw's servers will never see them.",
"link": "Blog post on end-to-end encryption in Excalidraw"