(core) Hide tutorial card with templates

Summary: Hides the tutorial card if GRIST_HIDE_UI_ELEMENTS includes "templates".

Test Plan: Tested manually.

Reviewers: paulfitz

Reviewed By: paulfitz

Subscribers: paulfitz

Differential Revision: https://phab.getgrist.com/D3850
pull/474/head
George Gevoian 1 year ago
parent 7aa83858bd
commit 4670d60c01

@ -12,6 +12,8 @@ interface Options {
}
export function buildTutorialCard(owner: IDisposableOwner, options: Options) {
if (shouldHideUiElement('templates')) { return null; }
const {app} = options;
const dismissed = app.dismissedPopup('tutorialFirstCard');
owner.autoDispose(dismissed);

Loading…
Cancel
Save