(core) Remove duplicate shouldHideUiElement

Summary: Also adds an explanatory comment for a recently-added column.

Test Plan: N/A

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D3854
This commit is contained in:
George Gevoian
2023-04-11 02:13:34 -04:00
parent 8a0bb4d4fe
commit c5029af4e7
2 changed files with 5 additions and 2 deletions

View File

@@ -23,7 +23,6 @@ export function buildTutorialCard(owner: IDisposableOwner, options: Options) {
const visible = Computed.create(owner, (use) =>
!use(dismissed)
&& !use(isNarrowScreenObs())
&& !shouldHideUiElement("templates")
);
return dom.maybe(visible, () => {
return cssCard(