Skip to content

Commit 6eddbc5

Browse files
yuanjackie1jasnoo
authored andcommitted
Fully implemented TS in DiffRoute.tsx
1 parent 88a5289 commit 6eddbc5

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/app/components/DiffRoute.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
11
import React from 'react';
22
import { MemoryRouter as Router, Route, NavLink, Switch } from 'react-router-dom';
33
import Diff from './Diff';
4-
5-
interface DiffRouteProps {
6-
snapshot: Record<
7-
string,
8-
{
9-
name?: string;
10-
componentData?: Record<string, unknown>;
11-
state?: string | unknown;
12-
stateSnaphot?: Record<string, unknown>;
13-
children?: unknown[];
14-
}
15-
>;
16-
}
4+
import { DiffRouteProps } from '../components/FrontendTypes';
175

186
const DiffRoute = (props: DiffRouteProps): JSX.Element => (
197
<Router>

0 commit comments

Comments
 (0)