Skip to content

Commit 84910fb

Browse files
committed
Fixed some typing issues as welll as corrected some spelling
1 parent 3dfac9d commit 84910fb

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/components/BottomPanel.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
22
import { connect } from 'react-redux';
33
import { handleClose, deleteProp, addProp } from '../actions/components';
44
import BottomTabs from './BottomTabs';
5-
import { ComponentInt, ComponentsInt, ChildInt, PropsInt, PropInt } from '../utils/Interfaces';
5+
import { PropsInt, PropInt } from '../utils/Interfaces';
66

77
const IPC = require('electron').ipcRenderer;
88

@@ -17,12 +17,12 @@ const mapStateToProps = (store: any) => ({
1717
components: store.workspace.components
1818
});
1919

20-
interface BottomPannelPropsInt extends PropsInt {
20+
interface BottomPanelPropsInt extends PropsInt {
2121
deleteProp(id: number): void;
2222
addProp(prop: PropInt): void;
2323
}
2424

25-
class BottomPanel extends Component<BottomPannelPropsInt> {
25+
class BottomPanel extends Component<BottomPanelPropsInt> {
2626
render() {
2727
const { components, focusComponent, deleteProp, addProp, focusChild } = this.props;
2828

src/components/Props.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface PropsPropsInt extends PropsInt {
1818
deleteProp(propId: number): void;
1919
}
2020

21-
const styles = (theme: Theme) => ({
21+
const styles = (theme: any) => ({
2222
root: {
2323
display: 'flex',
2424
justifyContent: 'center',
@@ -172,7 +172,7 @@ class Props extends Component<PropsPropsInt, StateInt> {
172172
};
173173

174174
render() {
175-
const { focusComponent, classes, deleteProp, addProp } = this.props;
175+
const { focusComponent, classes, deleteProp } = this.props;
176176

177177
const rowHeader = ['_Key', 'Value', 'Type', 'Required'];
178178
// prepare the saved Props in a nice way, so you can sent them to TableData

src/containers/LeftContainer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import cloneDeep from '../utils/cloneDeep';
2121
const IPC = require('electron').ipcRenderer;
2222

2323
interface LeftContPropsInt extends PropsInt {
24-
selectableChildren: Array<number>;
24+
selectableChildren: number[];
2525
classes: any;
2626
addComponent(arg: { title: string }): void;
2727
addChild(arg: { title: string; childType: string; HTMLInfo: object }): void;
@@ -37,7 +37,7 @@ interface LeftContPropsInt extends PropsInt {
3737
interface StateInt {
3838
componentName: string;
3939
modal: any;
40-
genOptions: Array<string>;
40+
genOptions: string[];
4141
genOption: number;
4242
imageSource: string;
4343
}

0 commit comments

Comments
 (0)