mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(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:
parent
3c610b365b
commit
8833958963
@ -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'},
|
||||
),
|
||||
),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user