feat: port UserProfile, Onboarding, CreateBot to legacy

This commit is contained in:
Paul Makles
2022-06-30 20:39:00 +01:00
parent 0d3f29515e
commit 401b2d4990
19 changed files with 155 additions and 129 deletions

View File

@@ -5,6 +5,8 @@ import { state } from "../../mobx/State";
import { __thisIsAHack } from "../../context/intermediate/Intermediate";
import { modalController } from "../modals/ModalController";
/**
* Current lifecycle state
*/
@@ -189,8 +191,8 @@ export default class Session {
);
if (onboarding) {
__thisIsAHack({
id: "onboarding",
modalController.push({
type: "onboarding",
callback: async (username: string) =>
this.client!.completeOnboarding(
{ username },