Skip to content

Commit c698fe1

Browse files
committed
ts coverage
1 parent 0d7679f commit c698fe1

File tree

11 files changed

+415
-256
lines changed

11 files changed

+415
-256
lines changed

app/src/components/left/ElementsContainer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ import ComponentDrag from './ComponentDrag';
66
import DragDropPanel from './DragDropPanel';
77

88
import { deleteChild } from '../../redux/reducers/slice/appStateSlice';
9+
import { RootState } from '../../redux/store';
910

1011
// Left-hand portion of the app, where component options are displayed
1112
const ElementsContainer = (props): JSX.Element => {
1213
const [selectedTab, setSelectedTab] = React.useState('files');
1314

14-
const { contextParam, style } = useSelector((store) => ({
15+
const { contextParam, style } = useSelector((store: RootState) => ({
1516
contextParam: store.contextSlice,
1617
style: store.styleSlice
1718
}));

app/src/components/right/createModal.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,33 @@ import React from 'react';
22
import SimpleModal from './SimpleModal';
33

44
type Props = {
5-
closeModal: any;
6-
primBtnAction: any;
7-
secBtnAction: any;
85
open: boolean;
9-
children: any;
106
message: string;
117
primBtnLabel: any;
128
secBtnLabel: any;
9+
primBtnAction: any;
10+
secBtnAction: any;
11+
children: any;
12+
closeModal: any;
1313
};
1414

1515
const createModal = ({
16+
open = true,
1617
message,
17-
closeModal,
1818
primBtnLabel,
19+
secBtnLabel = null,
1920
primBtnAction,
2021
secBtnAction = null,
21-
secBtnLabel = null,
2222
children = null,
23-
open = true
23+
closeModal
2424
}: Props) => (
2525
<SimpleModal
2626
open={open}
2727
message={message}
28-
secBtnLabel={secBtnLabel}
2928
primBtnLabel={primBtnLabel}
30-
secBtnAction={secBtnAction}
29+
secBtnLabel={secBtnLabel}
3130
primBtnAction={primBtnAction}
31+
secBtnAction={secBtnAction}
3232
closeModal={closeModal}
3333
>
3434
{children}

app/src/containers/MainContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const MainContainer = (props): JSX.Element => {
1717
(store: RootState) => store.appState.screenshotTrigger
1818
);
1919
const id: string = useSelector((store: RootState) => store.appState._id);
20-
const { style } = useSelector((store) => ({
20+
const { style } = useSelector((store: RootState) => ({
2121
style: store.styleSlice
2222
}));
2323
const containerRef: React.RefObject<HTMLDivElement> = useRef(null);

0 commit comments

Comments
 (0)