|
|
|
@ -35,7 +35,6 @@ interface State {
|
|
|
|
|
pwdLockError: string | null;
|
|
|
|
|
shouldLockSettings: boolean | null;
|
|
|
|
|
linkedPubKeys: Array<any>;
|
|
|
|
|
scaleValue: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface LocalSettingType {
|
|
|
|
@ -63,7 +62,6 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
|
|
|
|
|
pwdLockError: null,
|
|
|
|
|
shouldLockSettings: true,
|
|
|
|
|
linkedPubKeys: new Array(),
|
|
|
|
|
scaleValue: 200
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
this.settingsViewRef = React.createRef();
|
|
|
|
@ -74,7 +72,6 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
|
|
|
|
|
this.refreshLinkedDevice = this.refreshLinkedDevice.bind(this);
|
|
|
|
|
|
|
|
|
|
this.onKeyUp = this.onKeyUp.bind(this);
|
|
|
|
|
this.handleScaleChange = this.handleScaleChange.bind(this)
|
|
|
|
|
window.addEventListener('keyup', this.onKeyUp);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -164,11 +161,6 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|
|
|
|
|
|
<div style={{width:"100%"}} className="ScaleSliderContainer">
|
|
|
|
|
<input onChange={this.handleScaleChange}style={{width:"80%", marginLeft:"15%"}} type="range" min="0" max="200" step="25" className="ScaleSlider" id="ScaleSlider" value={this.state.scaleValue}/>
|
|
|
|
|
</div>
|
|
|
|
|
<div>Scale: {this.state.scaleValue}</div>
|
|
|
|
|
</>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
@ -277,17 +269,6 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public handleScaleChange(event:any):any {
|
|
|
|
|
const {value} = event.target;
|
|
|
|
|
let scaleVal:number = parseInt(value,10);
|
|
|
|
|
this.setState({
|
|
|
|
|
scaleValue:scaleVal
|
|
|
|
|
})
|
|
|
|
|
window.setSettingValue('')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public renderSessionInfo(): JSX.Element {
|
|
|
|
|
return (
|
|
|
|
|
<div className="session-settings__version-info">
|
|
|
|
|