check the state when the SessionSettings get rendered

pull/905/head
Brian Jian Zhao 5 years ago
parent dfca294ede
commit 0daf41a339

@ -100,12 +100,16 @@ export class SessionSettingListItem extends React.Component<Props, State> {
this.handleSlider(sliderValue); this.handleSlider(sliderValue);
}} }}
/> />
<div className="slider-info"> <div className="slider-info">
<p>{`${currentSliderValue} Hours`}</p> <p>{`${currentSliderValue} Hours`}</p>
</div> </div>
</div> </div>
)} )}
</div> </div>
<div>
See me in here
</div>
</div> </div>
); );
} }

@ -83,6 +83,7 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
}, 1000); }, 1000);
}); });
this.refreshLinkedDevice(); this.refreshLinkedDevice();
console.log(this.state, 'from SessionSettings');
} }
public componentWillUnmount() { public componentWillUnmount() {
@ -151,6 +152,10 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
</div> </div>
); );
})} })}
<div style={{width:"100%"}} className="ScaleSliderContainer">
<input style={{width:"80%", marginLeft:"15%"}} type="range" min="0" max="200" step="25" value="100" className="ScaleSlider" id="ScaleSlider" />
</div>
</> </>
); );
} }

Loading…
Cancel
Save