The Welcome Home Screen: Dedicated Download Apps Dialog (#9120)

* Implement new download apps dialog
* Added screenshot test for app download dialog
This commit is contained in:
Janne Mareike Koschinski 2022-08-02 16:08:02 +02:00 committed by GitHub
parent 6796375b10
commit b62413d725
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 207 additions and 1 deletions

View file

@ -16,11 +16,13 @@ limitations under the License.
import { useMemo } from "react";
import { AppDownloadDialog } from "../components/views/dialogs/AppDownloadDialog";
import { UserTab } from "../components/views/dialogs/UserTab";
import { ButtonEvent } from "../components/views/elements/AccessibleButton";
import { Action } from "../dispatcher/actions";
import defaultDispatcher from "../dispatcher/dispatcher";
import { _t } from "../languageHandler";
import Modal from "../Modal";
import { Notifier } from "../Notifier";
import PosthogTrackers from "../PosthogTrackers";
import { UseCase } from "../settings/enums/UseCase";
@ -100,9 +102,9 @@ const tasks: InternalUserOnboardingTask[] = [
},
action: {
label: _t("Download apps"),
href: "https://element.io/get-started#download",
onClick: (ev: ButtonEvent) => {
PosthogTrackers.trackInteraction("WebUserOnboardingTaskDownloadApps", ev);
Modal.createDialog(AppDownloadDialog, {}, "mx_AppDownloadDialog_wrapper", false, true);
},
},
},