mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-04 11:53:30 +03:00
Update
This commit is contained in:
parent
c5d0c9a0dc
commit
87dcec67d7
|
@ -1,15 +1,11 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { connect, ResolveThunks } from 'react-redux';
|
import { connect, ResolveThunks } from 'react-redux';
|
||||||
import { Container, Form } from '@redux-devtools/ui';
|
import { Container, Form } from '@redux-devtools/ui';
|
||||||
import {
|
import { JSONSchema7Definition, JSONSchema7TypeName } from 'json-schema';
|
||||||
JSONSchema7Definition,
|
|
||||||
JSONSchema7Type,
|
|
||||||
JSONSchema7TypeName,
|
|
||||||
} from 'json-schema';
|
|
||||||
import { ConnectionType, saveSocketSettings } from '../../actions';
|
import { ConnectionType, saveSocketSettings } from '../../actions';
|
||||||
import { StoreState } from '../../reducers';
|
import { StoreState } from '../../reducers';
|
||||||
import { ConnectionStateOptions } from '../../reducers/connection';
|
import { ConnectionStateOptions } from '../../reducers/connection';
|
||||||
import { IChangeEvent, ISubmitEvent } from '@rjsf/core';
|
import { IChangeEvent } from '@rjsf/core';
|
||||||
|
|
||||||
declare module 'json-schema' {
|
declare module 'json-schema' {
|
||||||
export interface JSONSchema7 {
|
export interface JSONSchema7 {
|
||||||
|
@ -104,13 +100,13 @@ export class Connection extends Component<Props, State> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handleSave = (data: ISubmitEvent<FormData>) => {
|
handleSave = (data: IChangeEvent<FormData>) => {
|
||||||
this.props.saveSettings(data.formData);
|
this.props.saveSettings(data.formData!);
|
||||||
this.setState({ changed: false });
|
this.setState({ changed: false });
|
||||||
};
|
};
|
||||||
|
|
||||||
handleChange = (data: IChangeEvent<FormData>) => {
|
handleChange = (data: IChangeEvent<FormData>) => {
|
||||||
const formData = data.formData;
|
const formData = data.formData!;
|
||||||
const type = formData.type;
|
const type = formData.type;
|
||||||
if (type !== this.state.type) {
|
if (type !== this.state.type) {
|
||||||
this.setState(this.setFormData(type, true));
|
this.setState(this.setFormData(type, true));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user