(core) Fix small Start Tutorial button

Summary: The button was missing an href.

Test Plan: Tested manually.

Reviewers: paulfitz

Reviewed By: paulfitz

Subscribers: paulfitz

Differential Revision: https://phab.getgrist.com/D3843
This commit is contained in:
George Gevoian 2023-03-29 23:01:14 -04:00
parent 3c610b365b
commit 8833958963

View File

@ -9,11 +9,10 @@ const testId = makeTestId('test-tutorial-card-');
interface Options {
app: AppModel,
onStart?: () => void,
}
export function buildTutorialCard(owner: IDisposableOwner, options: Options) {
const {app, onStart} = options;
const {app} = options;
const dismissed = app.dismissedPopup('tutorialFirstCard');
owner.autoDispose(dismissed);
function onClose() {
@ -43,7 +42,7 @@ export function buildTutorialCard(owner: IDisposableOwner, options: Options) {
cssButtonWrapper(
cssButtonWrapper.cls('-small'),
cssHeroButton("Start Tutorial"),
dom.on('click', () => onStart?.())
{href: commonUrls.basicTutorial, target: '_blank'},
),
),
),