Skip to content

Commit b002e79

Browse files
committed
Fix type errros
It seems that the types package was updated. So some code failed to compile
1 parent 9cb0788 commit b002e79

File tree

8 files changed

+9
-8
lines changed

8 files changed

+9
-8
lines changed

ui/src/components/App/App.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ it("renders without crashing", () => {
1515
composeEnhancers(applyMiddleware(thunkMiddleware))
1616
);
1717
ReactDOM.render(
18-
<Provider store={store}>
18+
<Provider store={store as any}>
1919
<App />
2020
</Provider>,
2121
div

ui/src/components/Log/LeftFilter/ColorPicker/ColorPicker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from "react";
2-
import { ColorResult, GithubPicker } from "react-color";
2+
import { ColorState, GithubPicker } from "react-color";
33

44
import "./ColorPicker.css";
55

@@ -46,7 +46,7 @@ export default class ColorPicker extends React.Component<Props, State> {
4646
public handleClose = () => {
4747
this.setState({ isColorPickerOpen: false });
4848
};
49-
public handleOnChangeColor = (color: ColorResult) => {
49+
public handleOnChangeColor = (color: ColorState) => {
5050
this.setState({
5151
isColorPickerOpen: false
5252
});

ui/src/components/Log/LeftFilter/LeftFilter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ const mapStateToProps = (state: ReducerConfigure) => ({
212212
selectedTargets: state.logReducer.filter.targets,
213213
nodes:
214214
state.chainNetworksReducer.chainNetworks &&
215-
state.chainNetworksReducer.chainNetworks.nodes,
215+
(state.chainNetworksReducer.chainNetworks.nodes as any[]),
216216
targets: state.logReducer.targets,
217217
nodeColors: state.logReducer.nodeColor
218218
});

ui/src/components/Log/LogViewer/LogViewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class LogViewer extends React.Component<Props, any> {
126126
};
127127
}
128128
const mapStateToProps = (state: ReducerConfigure) => ({
129-
logs: state.logReducer.logs,
129+
logs: state.logReducer.logs as any[],
130130
orderBy: state.logReducer.orderBy,
131131
isFetchingLog: state.logReducer.isFetchingLog,
132132
noMoreData: state.logReducer.noMoreData,

ui/src/components/NodeList/NodeDetailContainer/NodeDetailContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface OwnProps {
1515
}
1616

1717
interface StateProps {
18-
nodeInfo?: NodeInfo;
18+
nodeInfo?: NodeInfo | null;
1919
}
2020

2121
interface DispatchProps {

ui/src/components/NodeList/NodeListContainer/NodeListContainer.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NetworkNodeInfo } from "src/requests/types";
1+
import { NetworkNodeInfo } from "../../../requests/types";
22
import * as NLC from "./NodeListContainer";
33

44
describe("Test node ordering", () => {

ui/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const store = createStore(
1919
);
2020

2121
ReactDOM.render(
22-
<Provider store={store}>
22+
<Provider store={store as any}>
2323
<App />
2424
</Provider>,
2525
document.getElementById("root") as HTMLElement

ui/src/react-app-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="react-scripts" />

0 commit comments

Comments
 (0)