Skip to content

Commit c998535

Browse files
no changes
1 parent 20d8a62 commit c998535

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/components/Props.jsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ const styles = theme => ({
7373
},
7474
});
7575

76-
const mapDispatchToProps = dispatch => ({
77-
addProp: ({ key, value, required, type }) =>
76+
const mapDispatchToProps = (dispatch: any) => ({
77+
addProp: ({ key, value, required, type }: { key: string, value: string, required: boolean, type: string }) =>
7878
dispatch(
7979
addProp({
8080
key,
@@ -83,10 +83,10 @@ const mapDispatchToProps = dispatch => ({
8383
type,
8484
}),
8585
),
86-
deleteProp: propId => dispatch(deleteProp(propId)),
86+
deleteProp: (propId: number) => dispatch(deleteProp(propId)),
8787
});
8888

89-
const mapStateToProps = store => ({
89+
const mapStateToProps = (store: any) => ({
9090
focusComponent: store.workspace.focusComponent,
9191
});
9292

@@ -95,10 +95,9 @@ const availablePropTypes = {
9595
number: 'NUM',
9696
object: 'OBJ',
9797
array: 'ARR',
98-
number: 'NUM',
9998
boolean: 'BOOL',
10099
function: 'FUNC',
101-
symbol: 'SYM',
100+
// symbol: 'SYM',
102101
node: 'NODE',
103102
element: 'ELEM',
104103
any: 'ANY',

0 commit comments

Comments
 (0)