Skip to content

Commit a49a929

Browse files
refactor: add tooltips over 'Save data' and 'Save as'
1 parent 985c429 commit a49a929

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/component/toolbar/toolbarMenu.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,22 @@ const IMPORT_MENU: ToolbarPopoverMenuItem[] = [
4242
const EXPORT_MENU: ToolbarPopoverMenuItem[] = [
4343
{
4444
icon: <FaFileDownload />,
45-
text: 'Save data (Press Ctrl+s)',
45+
text: 'Save data',
46+
tooltip: {
47+
title: 'Save data',
48+
shortcuts: ['CTRL', 's'],
49+
},
4650
data: {
4751
id: 'json',
4852
},
4953
},
5054
{
5155
icon: <FaFileDownload />,
52-
text: 'Save as (Press Ctrl+Shift+s)',
56+
text: 'Save as',
57+
tooltip: {
58+
title: 'Save as',
59+
shortcuts: ['CTRL', '⇧', 's'],
60+
},
5361
data: {
5462
id: 'advance_save',
5563
},

0 commit comments

Comments
 (0)