File tree Expand file tree Collapse file tree 5 files changed +12
-17
lines changed Expand file tree Collapse file tree 5 files changed +12
-17
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import '../public/styles/style.css' ;
3
- import AppContainer from '../containers/AppContainer.tsx ' ;
3
+ import AppContainer from '../containers/AppContainer' ;
4
4
5
5
export const App : React . SFC = ( ) => (
6
6
< div className = "app" >
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import LeftContainer from './LeftContainer';
7
7
import MainContainer from './MainContainer' ;
8
8
import theme from '../components/theme' ;
9
9
// import { loadInitData } from '../actions/components.ts';
10
- import { ComponentInt , ComponentsInt } from '../utils/Interfaces' ;
10
+ import { ComponentInt , ComponentsInt , Action } from '../utils/Interfaces' ;
11
11
import * as actions from '../actions/components' ;
12
12
13
13
// ** Used with electron to render
@@ -20,9 +20,8 @@ type Props = {
20
20
totalComponents : number ;
21
21
loading : boolean ;
22
22
selectableChildren : Array < number > ;
23
- loadInitData : any ;
24
- changeImagePath : any ;
25
- changed : boolean ;
23
+ loadInitData : ( ) => void ;
24
+ changeImagePath : ( ) => void ;
26
25
} ;
27
26
28
27
type State = {
@@ -40,7 +39,7 @@ const mapStateToProps = (store: any) => ({
40
39
selectableChildren : store . workspace . selectableChildren
41
40
} ) ;
42
41
43
- const mapDispatchToProps = ( dispatch : any ) => ( {
42
+ const mapDispatchToProps = ( dispatch : ( arg : a ) => void ) => ( {
44
43
loadInitData : ( ) => dispatch ( actions . loadInitData ( ) ) ,
45
44
// loadInitData: () => {},
46
45
changeImagePath : ( imageSource : string ) =>
Original file line number Diff line number Diff line change 4
4
import React , { Component } from "react" ;
5
5
import { connect } from "react-redux" ;
6
6
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" ;
9
9
import {
10
10
handleTransform ,
11
11
changeFocusChild ,
12
12
changeComponentFocusChild ,
13
13
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" ;
17
17
import * as actions from '../actions/components' ;
18
18
19
19
interface PropsInt {
20
20
image : HTMLImageElement | null ;
21
21
components : ComponentsInt ;
22
22
focusComponent : ComponentInt ;
23
- selectableChildren : Array < number > ;
24
23
classes : any ;
25
24
addComponent : any ;
26
25
addChild : any ;
@@ -34,6 +33,7 @@ interface PropsInt {
34
33
focusChild : any ;
35
34
changeComponentFocusChild : any ;
36
35
deleteChild : any ;
36
+ imageSource : string ;
37
37
}
38
38
39
39
interface StateInt {
Original file line number Diff line number Diff line change 1
- < < < << << HEAD
2
1
import {
3
2
ComponentInt ,
4
3
ChildInt ,
5
4
ApplicationStateInt ,
6
5
Action
7
6
} from '../utils/Interfaces' ;
8
7
9
- === === =
10
- import { ComponentInt , ChildInt , ApplicationStateInt } from '../utils/Interfaces' ;
11
- >>> >>> > 8 ba7c2096cd63a22e916fe1c390ab30a4df2c14a
12
8
13
9
import {
14
10
LOAD_INIT_DATA ,
Original file line number Diff line number Diff line change 1
1
import { combineReducers } from 'redux' ;
2
2
3
- import componentReducer from './componentReducer.ts ' ;
3
+ import componentReducer from './componentReducer' ;
4
4
5
5
const reducers = combineReducers ( {
6
6
workspace : componentReducer ,
You can’t perform that action at this time.
0 commit comments