Skip to content

Commit 535ab2d

Browse files
committed
MainContainer was returning an any type, changed to jsx.element
tabsArray was set to any, changed to array of strings maxTab was not declared as a type, changed to number type
1 parent e873fe5 commit 535ab2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/containers/MainContainer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
} from '../actions/actions';
2020
import { useStoreContext } from '../store';
2121

22-
function MainContainer(): any {
22+
function MainContainer(): JSX.Element {
2323
const [store, dispatch] = useStoreContext();
2424
const {
2525
tabs, currentTab, port, split,
@@ -53,9 +53,9 @@ function MainContainer(): any {
5353
sourceTab: number;
5454
}) => {
5555
const { action, payload, sourceTab } = message;
56-
let maxTab;
56+
let maxTab: number;
5757
if (!sourceTab) {
58-
const tabsArray: any = Object.keys(payload);
58+
const tabsArray: Array<string> = Object.keys(payload);
5959
maxTab = Math.max(...tabsArray);
6060
}
6161
switch (action) {

0 commit comments

Comments
 (0)