Skip to content

Commit 13662e3

Browse files
committed
Typing corections on AppContainer component
1 parent c134edd commit 13662e3

File tree

5 files changed

+12
-17
lines changed

5 files changed

+12
-17
lines changed

src/components/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import '../public/styles/style.css';
3-
import AppContainer from '../containers/AppContainer.tsx';
3+
import AppContainer from '../containers/AppContainer';
44

55
export const App: React.SFC = () => (
66
<div className="app">

src/containers/AppContainer.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import LeftContainer from './LeftContainer';
77
import MainContainer from './MainContainer';
88
import theme from '../components/theme';
99
// import { loadInitData } from '../actions/components.ts';
10-
import { ComponentInt, ComponentsInt } from '../utils/Interfaces';
10+
import { ComponentInt, ComponentsInt, Action } from '../utils/Interfaces';
1111
import * as actions from '../actions/components';
1212

1313
// ** Used with electron to render
@@ -20,9 +20,8 @@ type Props = {
2020
totalComponents: number;
2121
loading: boolean;
2222
selectableChildren: Array<number>;
23-
loadInitData: any;
24-
changeImagePath: any;
25-
changed: boolean;
23+
loadInitData: () => void;
24+
changeImagePath: () => void;
2625
};
2726

2827
type State = {
@@ -40,7 +39,7 @@ const mapStateToProps = (store: any) => ({
4039
selectableChildren: store.workspace.selectableChildren
4140
});
4241

43-
const mapDispatchToProps = (dispatch: any) => ({
42+
const mapDispatchToProps = (dispatch: (arg: a) => void) => ({
4443
loadInitData: () => dispatch(actions.loadInitData()),
4544
// loadInitData: () => {},
4645
changeImagePath: (imageSource: string) =>

src/containers/MainContainer.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,22 @@
44
import React, { Component } from "react";
55
import { connect } from "react-redux";
66
import { MuiThemeProvider } from "@material-ui/core/styles";
7-
import BottomPanel from "../components/BottomPanel.tsx";
8-
import theme from "../components/theme.ts";
7+
import BottomPanel from "../components/BottomPanel";
8+
import theme from "../components/theme";
99
import {
1010
handleTransform,
1111
changeFocusChild,
1212
changeComponentFocusChild,
1313
deleteChild
14-
} from "../actions/components.ts";
15-
import KonvaStage from "../components/KonvaStage.tsx";
16-
import { ComponentInt, ComponentsInt } from "../utils/Interfaces.ts";
14+
} from "../actions/components";
15+
import KonvaStage from "../components/KonvaStage";
16+
import { ComponentInt, ComponentsInt } from "../utils/Interfaces";
1717
import * as actions from '../actions/components';
1818

1919
interface PropsInt {
2020
image: HTMLImageElement | null;
2121
components: ComponentsInt;
2222
focusComponent: ComponentInt;
23-
selectableChildren: Array<number>;
2423
classes: any;
2524
addComponent: any;
2625
addChild: any;
@@ -34,6 +33,7 @@ interface PropsInt {
3433
focusChild: any;
3534
changeComponentFocusChild: any;
3635
deleteChild: any;
36+
imageSource: string;
3737
}
3838

3939
interface StateInt {

src/reducers/componentReducer.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
<<<<<<< HEAD
21
import {
32
ComponentInt,
43
ChildInt,
54
ApplicationStateInt,
65
Action
76
} from '../utils/Interfaces';
87

9-
=======
10-
import { ComponentInt, ChildInt, ApplicationStateInt } from '../utils/Interfaces';
11-
>>>>>>> 8ba7c2096cd63a22e916fe1c390ab30a4df2c14a
128

139
import {
1410
LOAD_INIT_DATA,

src/reducers/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { combineReducers } from 'redux';
22

3-
import componentReducer from './componentReducer.ts';
3+
import componentReducer from './componentReducer';
44

55
const reducers = combineReducers({
66
workspace: componentReducer,

0 commit comments

Comments
 (0)