Skip to content

Commit ee54589

Browse files
author
John Tore Simonsen
committed
Update CustomComponentLifecycle with OnboardingDialog
1 parent 6da3a7d commit ee54589

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

lib/lifecycles/CustomComponentLifecycle.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ export declare enum CustomComponentLifecycle {
2626
RoomView = "room_view",
2727
SessionManagerTab = "session_manage_tab",
2828
SpacePanel = "space_panel",
29-
UserMenu = "user_menu"
29+
UserMenu = "user_menu",
30+
OnboardingDialog = "onboarding_dialog"
3031
}
3132
/**
3233
* Opts object that is populated with a Wrapper.

lib/lifecycles/CustomComponentLifecycle.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,5 @@ exports.CustomComponentLifecycle = CustomComponentLifecycle;
5757
CustomComponentLifecycle["SessionManagerTab"] = "session_manage_tab";
5858
CustomComponentLifecycle["SpacePanel"] = "space_panel";
5959
CustomComponentLifecycle["UserMenu"] = "user_menu";
60+
CustomComponentLifecycle["OnboardingDialog"] = "onboarding_dialog";
6061
})(CustomComponentLifecycle || (exports.CustomComponentLifecycle = CustomComponentLifecycle = {}));

src/lifecycles/CustomComponentLifecycle.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export enum CustomComponentLifecycle {
4949
SessionManagerTab = "session_manage_tab",
5050
SpacePanel = "space_panel",
5151
UserMenu = "user_menu",
52+
OnboardingDialog = "onboarding_dialog",
5253
}
5354

5455
/**

test/lifecycles/CustomComponentLifecycle.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ describe("CustomComponentLifecycle", () => {
9898
const customComponentOpts: CustomComponentOpts = { CustomComponent: React.Fragment };
9999

100100
// We emit a different lifecycle event than what our mock-module is listening to
101-
module.emit(CustomComponentLifecycle.Experimental, customComponentOpts);
101+
module.emit(CustomComponentLifecycle.OnboardingDialog, customComponentOpts);
102102

103103
render(
104104
<customComponentOpts.CustomComponent>

0 commit comments

Comments
 (0)