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:
parent
4aaebf734d
commit
e96e0faf4a
1 changed files with 0 additions and 32 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue