Fix warnings relating to unused values (#196)

This commit is contained in:
rjwats 2020-09-01 11:57:32 +01:00 committed by GitHub
parent 3d50cab9b7
commit 2ed5d26b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 8 deletions

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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}>

View File

@ -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}>

View File

@ -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>

View File

@ -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

View File

@ -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