Skip to content

Commit 3001cc6

Browse files
Tolga MizrakciTolga Mizrakci
authored andcommitted
add component and child working initially. back to js atm
2 parents f13ed8d + 0db08b3 commit 3001cc6

17 files changed

+393
-533
lines changed

.eslintrc.json

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
{
2-
"extends": [
3-
"plugin:react/recommended",
4-
"airbnb-base"
5-
],
2+
"extends": ["plugin:react/recommended", "airbnb-base"],
63
"parserOptions": {
74
"ecmaFeatures": {
85
"jsx": true
96
},
107
"ecmaVersion": 2018,
118
"sourceType": "module"
129
},
13-
"plugins": [
14-
"import",
15-
"react",
16-
"jest",
17-
"jsx-a11y",
18-
"babel"
19-
],
10+
"plugins": ["import", "react", "jest", "jsx-a11y", "babel"],
2011
"parser": "babel-eslint",
2112
"env": {
2213
"browser": true,
@@ -25,6 +16,7 @@
2516
"jest": true
2617
},
2718
"rules": {
28-
"class-methods-use-this": "off"
19+
"class-methods-use-this": "off",
20+
"linebreak-style": 0
2921
}
30-
}
22+
}

src/actions/components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const addComponent = ({ title }) => (dispatch) => {
6464
};
6565

6666
export const addChild = ({ title }) => (dispatch) => {
67-
dispatch({ type: ADD_CHILD, payload: { title, view } });
67+
dispatch({ type: ADD_CHILD, payload: { title } });
6868
// dispatch({ type: SET_SELECTABLE_PARENTS });
6969
};
7070

src/components/App.tsx renamed to src/components/App.jsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@ import React, { Component } from 'react';
22
import '../public/styles/style.css';
33
import { MuiThemeProvider } from '@material-ui/core/styles';
44
import theme from './theme';
5-
import AppContainer from '../containers/AppContainer.tsx';
5+
import AppContainer from '../containers/AppContainer.jsx';
66

7-
interface Adam {
8-
goodguy: boolean;
9-
haswine: boolean;
10-
}
7+
// interface Adam {
8+
// goodguy: boolean;
9+
// haswine: boolean;
10+
// }
1111

1212
class App extends Component {
1313
render() {
14-
const adamInstance: Adam = {
15-
goodguy: true,
16-
haswine: false,
17-
};
18-
console.log(adamInstance);
14+
// const adamInstance: Adam = {
15+
// goodguy: true,
16+
// haswine: false,
17+
// };
1918
return (
2019
<MuiThemeProvider theme={theme}>
2120
<div className="app">

src/components/KonvaStage.tsx renamed to src/components/KonvaStage.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import React, { Component, createRef } from 'react';
33
import {
44
Stage, Layer, Image, Group,
55
} from 'react-konva';
6-
import TransformerComponent from './TransformerComponent.tsx';
7-
import Rectangle from './Rectangle.tsx';
6+
import TransformerComponent from './TransformerComponent.jsx';
7+
import Rectangle from './Rectangle.jsx';
88

99

1010
class KonvaStage extends Component {

0 commit comments

Comments
 (0)