@@ -73,6 +73,7 @@ import { jsonToMermaid } from "../../utils/exportAs/mermaid";
73
73
import { isRtl } from "../../i18n/utils/rtl" ;
74
74
import { jsonToDocumentation } from "../../utils/exportAs/documentation" ;
75
75
import { IdContext } from "../Workspace" ;
76
+ import { socials } from "../../data/socials" ;
76
77
77
78
export default function ControlPanel ( {
78
79
diagramId,
@@ -1341,12 +1342,15 @@ export default function ControlPanel({
1341
1342
} ,
1342
1343
} ,
1343
1344
help : {
1344
- shortcuts : {
1345
- function : ( ) => window . open ( "/shortcuts" , "_blank" ) ,
1345
+ docs : {
1346
+ function : ( ) => window . open ( ` ${ socials . docs } ` , "_blank" ) ,
1346
1347
shortcut : "Ctrl+H" ,
1347
1348
} ,
1349
+ shortcuts : {
1350
+ function : ( ) => window . open ( `${ socials . docs } /shortcuts` , "_blank" ) ,
1351
+ } ,
1348
1352
ask_on_discord : {
1349
- function : ( ) => window . open ( "https://discord.gg/BrjZgNrmR6" , "_blank" ) ,
1353
+ function : ( ) => window . open ( socials . discord , "_blank" ) ,
1350
1354
} ,
1351
1355
report_bug : {
1352
1356
function : ( ) => window . open ( "/bug-report" , "_blank" ) ,
@@ -1382,7 +1386,7 @@ export default function ControlPanel({
1382
1386
} ) ;
1383
1387
useHotkeys ( "ctrl+alt+c, meta+alt+c" , copyAsImage , { preventDefault : true } ) ;
1384
1388
useHotkeys ( "ctrl+r, meta+r" , resetView , { preventDefault : true } ) ;
1385
- useHotkeys ( "ctrl+h, meta+h" , ( ) => window . open ( "/shortcuts" , "_blank" ) , {
1389
+ useHotkeys ( "ctrl+h, meta+h" , ( ) => window . open ( socials . docs , "_blank" ) , {
1386
1390
preventDefault : true ,
1387
1391
} ) ;
1388
1392
useHotkeys ( "ctrl+alt+w, meta+alt+w" , fitWindow , { preventDefault : true } ) ;
0 commit comments