1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

JS-5649: remove old code

This commit is contained in:
Andrew Simachev 2024-10-25 10:30:41 +02:00
parent 4aaebf734d
commit e96e0faf4a
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF

View file

@ -72,7 +72,6 @@ class MenuHelp extends React.Component<I.Menu> {
return [
{ id: 'whatsNew', document: 'whatsNew', caption: btn },
{ id: 'shortcut', caption: 'Ctrl+Space' },
// { id: 'hints' },
{ isDiv: true },
{ id: 'gallery' },
{ id: 'community' },
@ -131,37 +130,6 @@ class MenuHelp extends React.Component<I.Menu> {
break;
};
case 'hints': {
const isPopup = keyboard.isPopup();
const rootId = keyboard.getRootId();
const isEditor = keyboard.isMainEditor();
const isSet = keyboard.isMainSet();
let key = '';
if (isEditor && home && (rootId == home.id)) {
key = 'basics';
} else
if (isSet) {
key = 'mainSet';
} else
if (isEditor) {
key = S.Block.checkBlockTypeExists(rootId) ? 'objectCreationStart' : 'basics';
} else
if (isGraph) {
key = 'mainGraph';
} else {
const { page, action } = keyboard.getMatch().params;
key = U.Common.toCamelCase([ page, action ].join('-'));
};
if (key) {
Onboarding.start(key, isPopup, true);
};
break;
};
};
};