Skip to content

Commit 1bb4187

Browse files
committed
refactor: remove duplicate interfaces
1 parent 2524da4 commit 1bb4187

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/routes.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,9 @@ import RepoList from './ui/views/RepoList/RepoList';
2828

2929
import { RepoIcon } from '@primer/octicons-react';
3030
import { Group, AccountCircle, Dashboard } from '@material-ui/icons';
31+
import { Route } from './types/models';
3132

32-
interface RouteType {
33-
path: string;
34-
name: string;
35-
icon: React.ComponentType<any>;
36-
component: React.ComponentType<any>;
37-
layout: string;
38-
visible: boolean;
39-
}
40-
41-
const dashboardRoutes: RouteType[] = [
33+
const dashboardRoutes: Route[] = [
4234
{
4335
path: '/repo',
4436
name: 'Repositories',

src/ui/views/RepoList/Components/RepoOverview.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import axios from 'axios';
77
import moment from 'moment';
88
import CodeActionButton from '../../../components/CustomButtons/CodeActionButton';
99
import { languageColors } from '../../../../constants/languageColors';
10+
import { RepositoriesProps } from '../repositories.types';
1011

1112
interface GitHubRepository {
1213
description?: string;

0 commit comments

Comments
 (0)