Skip to content

Commit d4b25b3

Browse files
committed
Renamed action creator files to what it should be
1 parent 7b150f7 commit d4b25b3

File tree

11 files changed

+10
-32
lines changed

11 files changed

+10
-32
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
"concurrently": "^5.1.0",
142142
"copy-webpack-plugin": "^4.5.2",
143143
"cross-env": "^5.2.1",
144-
"css-loader": "^0.28.11",
144+
"css-loader": "^2.1.1",
145145
"electron": "^2.0.7",
146146
"electron-builder": "^20.44.4",
147147
"electron-devtools-installer": "^2.2.4",

src/actions/components.ts renamed to src/actions/actionCreators.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import {
3030
ADD_PROP,
3131
DELETE_ALL_DATA,
3232
UPDATE_HTML_ATTR,
33-
// UPDATE_CHILDREN_SORT, --The reason why this is commented out is because of the unused reducer of the same name, for the component that is unfinished with the same name. Check out the Sort Children component to see what it does.
3433
CHANGE_IMAGE_SOURCE,
3534
DELETE_IMAGE,
3635
CHANGE_TUTORIAL,
@@ -325,14 +324,4 @@ export const updateHtmlAttr = ({
325324
type: UPDATE_HTML_ATTR,
326325
payload: { attr, value },
327326
});
328-
};
329-
330-
//Action reserved for SortChildren component not written yet
331-
// export const updateChildrenSort = ({ newSortValues }: { newSortValues: any }) => (
332-
// dispatch: (arg: Action) => void,
333-
// ) => {
334-
// dispatch({
335-
// type: UPDATE_CHILDREN_SORT,
336-
// payload: { newSortValues },
337-
// });
338-
// };
327+
};

src/components/AddChildProps.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import React, { Component } from 'react';
22
import { connect } from 'react-redux';
3-
import { ComponentInt } from '../utils/Interfaces';
4-
import { addProp, deleteProp } from '../actions/components';
5-
import DataTable from './DataTable';
3+
import { addProp, deleteProp } from '../actions/actionCreators';
64
import MaterialTable from 'material-table';
75

86
const mapDispatchToProps = (dispatch: any) => ({

src/components/BottomPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Component } from 'react';
22
import { connect } from 'react-redux';
3-
import { handleClose, deleteProp, addProp } from '../actions/components';
3+
import { handleClose, deleteProp, addProp } from '../actions/actionCreators';
44
import BottomTabs from './BottomTabs';
55
import { PropsInt, PropInt } from '../utils/Interfaces';
66

src/components/HtmlAttr.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import Paper from '@material-ui/core/Paper';
99
import Select from '@material-ui/core/Select';
1010
import Fab from '@material-ui/core/Fab';
1111
import InputLabel from '@material-ui/core/InputLabel';
12-
import { updateHtmlAttr } from '../actions/components';
12+
import { updateHtmlAttr } from '../actions/actionCreators';
1313
import { HTMLelements } from '../utils/htmlElements.util';
14-
import { ComponentInt, ChildInt, PropsInt, PropInt } from '../utils/Interfaces';
14+
import { PropsInt, PropInt } from '../utils/Interfaces';
1515

1616
interface HTMLAttrPropsInt extends PropsInt {
1717
updateHtmlAttr(arg: { attr: string; value: string }): void;

src/components/Props.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import TextField from '@material-ui/core/TextField';
77
import Button from '@material-ui/core/Button';
88
import Select from '@material-ui/core/Select';
99
import InputLabel from '@material-ui/core/InputLabel';
10-
import { addProp, deleteProp } from '../actions/components';
10+
import { addProp, deleteProp } from '../actions/actionCreators';
1111
import DataTable from './DataTable';
1212
import { PropInt, PropsInt } from '../utils/Interfaces';
1313

src/containers/AppContainer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ import Tutorial from '../components/Tutorial';
66
import LeftContainer from './LeftContainer';
77
import MainContainer from './MainContainer';
88
import theme from '../components/theme';
9-
// import { loadInitData } from '../actions/components.ts';
109
import {
1110
ComponentInt,
1211
ComponentsInt,
1312
ApplicationStateInt,
1413
} from '../utils/Interfaces';
15-
import * as actions from '../actions/components';
14+
import * as actions from '../actions/actionCreators';
1615

1716
// ** Used with electron to render
1817
const IPC = require('electron').ipcRenderer;

src/containers/LeftContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import ListItemText from '@material-ui/core/ListItemText';
1313
import Fab from '@material-ui/core/Fab';
1414
import LeftColExpansionPanel from '../components/LeftColExpansionPanel';
1515
import HTMLComponentPanel from '../components/HTMLComponentPanel';
16-
import * as actions from '../actions/components';
16+
import * as actions from '../actions/actionCreators';
1717
import { ComponentInt, ComponentsInt, PropsInt } from '../utils/Interfaces';
1818
import createModal from '../utils/createModal.util';
1919
import cloneDeep from '../utils/cloneDeep';

src/containers/MainContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
changeComponentFocusChild,
1313
deleteChild,
1414
changeFocusComponent
15-
} from '../actions/components';
15+
} from '../actions/actionCreators';
1616
import KonvaStage from '../components/KonvaStage';
1717
import { PropsInt, ApplicationStateInt } from '../utils/Interfaces';
1818

src/localStorage.tsx

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/reducers/componentReducer.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,12 @@ import {
1919
CHANGE_IMAGE_SOURCE,
2020
DELETE_IMAGE,
2121
EXPORT_FILES,
22-
CREATE_APPLICATION, //unused
2322
EXPORT_FILES_SUCCESS,
2423
EXPORT_FILES_ERROR,
25-
CREATE_APPLICATION_ERROR, //unused
2624
HANDLE_CLOSE,
2725
HANDLE_TRANSFORM,
2826
OPEN_EXPANSION_PANEL,
2927
DELETE_ALL_DATA,
30-
CHANGE_IMAGE_PATH, //unused
3128
CHANGE_TUTORIAL,
3229
ADD_PROP,
3330
DELETE_PROP,

0 commit comments

Comments
 (0)