From 0daf41a339f37da612bc7e86e658ababf96a786b Mon Sep 17 00:00:00 2001 From: Brian Jian Zhao Date: Tue, 18 Feb 2020 14:47:59 +1100 Subject: [PATCH] check the state when the SessionSettings get rendered --- ts/components/session/settings/SessionSettingListItem.tsx | 4 ++++ ts/components/session/settings/SessionSettings.tsx | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/ts/components/session/settings/SessionSettingListItem.tsx b/ts/components/session/settings/SessionSettingListItem.tsx index 0713a6068..db80bb296 100644 --- a/ts/components/session/settings/SessionSettingListItem.tsx +++ b/ts/components/session/settings/SessionSettingListItem.tsx @@ -100,12 +100,16 @@ export class SessionSettingListItem extends React.Component { this.handleSlider(sliderValue); }} /> +

{`${currentSliderValue} Hours`}

)} +
+ See me in here +
); } diff --git a/ts/components/session/settings/SessionSettings.tsx b/ts/components/session/settings/SessionSettings.tsx index 692a0efbd..5a4623619 100644 --- a/ts/components/session/settings/SessionSettings.tsx +++ b/ts/components/session/settings/SessionSettings.tsx @@ -83,6 +83,7 @@ export class SettingsView extends React.Component { }, 1000); }); this.refreshLinkedDevice(); + console.log(this.state, 'from SessionSettings'); } public componentWillUnmount() { @@ -151,6 +152,10 @@ export class SettingsView extends React.Component { ); })} + +
+ +
); }