Fix warnings relating to unused values (#196)
This commit is contained in:
parent
3d50cab9b7
commit
2ed5d26b4e
@ -19,7 +19,7 @@ class APSettingsForm extends React.Component<APSettingsFormProps> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { data, handleValueChange, saveData, loadData } = this.props;
|
const { data, handleValueChange, saveData } = this.props;
|
||||||
return (
|
return (
|
||||||
<ValidatorForm onSubmit={saveData} ref="APSettingsForm">
|
<ValidatorForm onSubmit={saveData} ref="APSettingsForm">
|
||||||
<SelectValidator name="provision_mode"
|
<SelectValidator name="provision_mode"
|
||||||
|
@ -18,7 +18,7 @@ class MqttSettingsForm extends React.Component<MqttSettingsFormProps> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { data, handleValueChange, saveData, loadData } = this.props;
|
const { data, handleValueChange, saveData } = this.props;
|
||||||
return (
|
return (
|
||||||
<ValidatorForm onSubmit={saveData}>
|
<ValidatorForm onSubmit={saveData}>
|
||||||
<BlockFormControlLabel
|
<BlockFormControlLabel
|
||||||
|
@ -28,7 +28,7 @@ class NTPSettingsForm extends React.Component<NTPSettingsFormProps> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { data, handleValueChange, saveData, loadData } = this.props;
|
const { data, handleValueChange, saveData } = this.props;
|
||||||
return (
|
return (
|
||||||
<ValidatorForm onSubmit={saveData}>
|
<ValidatorForm onSubmit={saveData}>
|
||||||
<BlockFormControlLabel
|
<BlockFormControlLabel
|
||||||
|
@ -39,7 +39,7 @@ export default restController(LIGHT_BROKER_SETTINGS_ENDPOINT, LightMqttSettingsC
|
|||||||
type LightMqttSettingsControllerFormProps = RestFormProps<LightMqttSettings>;
|
type LightMqttSettingsControllerFormProps = RestFormProps<LightMqttSettings>;
|
||||||
|
|
||||||
function LightMqttSettingsControllerForm(props: LightMqttSettingsControllerFormProps) {
|
function LightMqttSettingsControllerForm(props: LightMqttSettingsControllerFormProps) {
|
||||||
const { data, saveData, loadData, handleValueChange } = props;
|
const { data, saveData, handleValueChange } = props;
|
||||||
return (
|
return (
|
||||||
<ValidatorForm onSubmit={saveData}>
|
<ValidatorForm onSubmit={saveData}>
|
||||||
<Box bgcolor="primary.main" color="primary.contrastText" p={2} mt={2} mb={2}>
|
<Box bgcolor="primary.main" color="primary.contrastText" p={2} mt={2} mb={2}>
|
||||||
|
@ -39,7 +39,7 @@ export default restController(LIGHT_SETTINGS_ENDPOINT, LightStateRestController)
|
|||||||
type LightStateRestControllerFormProps = RestFormProps<LightState>;
|
type LightStateRestControllerFormProps = RestFormProps<LightState>;
|
||||||
|
|
||||||
function LightStateRestControllerForm(props: LightStateRestControllerFormProps) {
|
function LightStateRestControllerForm(props: LightStateRestControllerFormProps) {
|
||||||
const { data, saveData, loadData, handleValueChange } = props;
|
const { data, saveData, handleValueChange } = props;
|
||||||
return (
|
return (
|
||||||
<ValidatorForm onSubmit={saveData}>
|
<ValidatorForm onSubmit={saveData}>
|
||||||
<Box bgcolor="primary.main" color="primary.contrastText" p={2} mt={2} mb={2}>
|
<Box bgcolor="primary.main" color="primary.contrastText" p={2} mt={2} mb={2}>
|
||||||
|
@ -106,7 +106,7 @@ class ManageUsersForm extends React.Component<ManageUsersFormProps, ManageUsersF
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { width, data, loadData } = this.props;
|
const { width, data } = this.props;
|
||||||
const { user, creating } = this.state;
|
const { user, creating } = this.state;
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
|
@ -19,7 +19,7 @@ class SecuritySettingsForm extends React.Component<SecuritySettingsFormProps> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { data, handleValueChange, loadData } = this.props;
|
const { data, handleValueChange } = this.props;
|
||||||
return (
|
return (
|
||||||
<ValidatorForm onSubmit={this.onSubmit}>
|
<ValidatorForm onSubmit={this.onSubmit}>
|
||||||
<PasswordValidator
|
<PasswordValidator
|
||||||
|
@ -18,7 +18,7 @@ class OTASettingsForm extends React.Component<OTASettingsFormProps> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { data, handleValueChange, saveData, loadData } = this.props;
|
const { data, handleValueChange, saveData } = this.props;
|
||||||
return (
|
return (
|
||||||
<ValidatorForm onSubmit={saveData}>
|
<ValidatorForm onSubmit={saveData}>
|
||||||
<BlockFormControlLabel
|
<BlockFormControlLabel
|
||||||
|
Loading…
Reference in New Issue
Block a user