Skip to content

Commit 80a2254

Browse files
yuanjackie1jasnoo
authored andcommitted
Imported ActionProps interface from FrontendTypes
1 parent 0a12f9c commit 80a2254

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

src/app/components/Action.tsx

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,7 @@
55
import React from 'react';
66
import ReactHover, { Trigger, Hover } from 'react-hover';
77
import { changeView, changeSlider } from '../actions/actions';
8-
9-
/**
10-
* @template ActionProps Props for the action component
11-
*/
12-
13-
interface ActionProps {
14-
key: string;
15-
selected: boolean;
16-
last: boolean;
17-
index: number;
18-
sliderIndex: number;
19-
dispatch: (a: { type: string; payload: unknown; }) => void;
20-
displayName: string;
21-
componentName: string;
22-
componentData: { actualDuration: number } | undefined;
23-
routePath: unknown;
24-
state?: Record<string, unknown>;
25-
viewIndex: number | undefined;
26-
isCurrIndex: boolean;
27-
handleOnkeyDown: (e: unknown, i: number) => void;
28-
}
8+
import { ActionProps } from '../components/FrontendTypes';
299

3010
/**
3111
* @function Action

0 commit comments

Comments
 (0)