From bdb02cdfd107270bf016374f8c45c2c9acfed27c Mon Sep 17 00:00:00 2001 From: Eduard Heimbuch Date: Thu, 9 Jan 2020 09:52:09 +0100 Subject: [PATCH] remove obsolete context props --- scm-plugins/scm-legacy-plugin/src/main/js/index.tsx | 3 --- scm-ui/ui-components/src/OverviewPageActions.tsx | 4 ---- .../ui-webapp/src/admin/roles/containers/RepositoryRoles.tsx | 4 ---- scm-ui/ui-webapp/src/groups/containers/Groups.tsx | 4 ---- scm-ui/ui-webapp/src/repos/containers/Overview.tsx | 4 ---- scm-ui/ui-webapp/src/users/containers/Users.tsx | 4 ---- 6 files changed, 23 deletions(-) diff --git a/scm-plugins/scm-legacy-plugin/src/main/js/index.tsx b/scm-plugins/scm-legacy-plugin/src/main/js/index.tsx index 418c3e7b21..2c9bbcc39e 100644 --- a/scm-plugins/scm-legacy-plugin/src/main/js/index.tsx +++ b/scm-plugins/scm-legacy-plugin/src/main/js/index.tsx @@ -8,9 +8,6 @@ import { Links, Link } from "@scm-manager/ui-types"; type Props = RouteComponentProps & { authenticated?: boolean; links: Links; - - //context objects - history: History; }; type State = { diff --git a/scm-ui/ui-components/src/OverviewPageActions.tsx b/scm-ui/ui-components/src/OverviewPageActions.tsx index bb9aea0ee6..ddf5e717b1 100644 --- a/scm-ui/ui-components/src/OverviewPageActions.tsx +++ b/scm-ui/ui-components/src/OverviewPageActions.tsx @@ -9,10 +9,6 @@ type Props = RouteComponentProps & { showCreateButton: boolean; link: string; label?: string; - - // context props - history: History; - location: any; }; class OverviewPageActions extends React.Component { diff --git a/scm-ui/ui-webapp/src/admin/roles/containers/RepositoryRoles.tsx b/scm-ui/ui-webapp/src/admin/roles/containers/RepositoryRoles.tsx index bd1912070f..8414c8edce 100644 --- a/scm-ui/ui-webapp/src/admin/roles/containers/RepositoryRoles.tsx +++ b/scm-ui/ui-webapp/src/admin/roles/containers/RepositoryRoles.tsx @@ -27,10 +27,6 @@ type Props = RouteComponentProps & page: number; rolesLink: string; - // context objects - history: History; - location: any; - // dispatch functions fetchRolesByPage: (link: string, page: number) => void; }; diff --git a/scm-ui/ui-webapp/src/groups/containers/Groups.tsx b/scm-ui/ui-webapp/src/groups/containers/Groups.tsx index 9c28ce6ccc..28e9c89b97 100644 --- a/scm-ui/ui-webapp/src/groups/containers/Groups.tsx +++ b/scm-ui/ui-webapp/src/groups/containers/Groups.tsx @@ -34,10 +34,6 @@ type Props = RouteComponentProps & page: number; groupLink: string; - // context objects - history: History; - location: any; - // dispatch functions fetchGroupsByPage: (link: string, page: number, filter?: string) => void; }; diff --git a/scm-ui/ui-webapp/src/repos/containers/Overview.tsx b/scm-ui/ui-webapp/src/repos/containers/Overview.tsx index 6e056c38f0..1faf9ff3e2 100644 --- a/scm-ui/ui-webapp/src/repos/containers/Overview.tsx +++ b/scm-ui/ui-webapp/src/repos/containers/Overview.tsx @@ -32,10 +32,6 @@ type Props = WithTranslation & page: number; reposLink: string; - // context props - history: History; - location: any; - // dispatched functions fetchReposByPage: (link: string, page: number, filter?: string) => void; }; diff --git a/scm-ui/ui-webapp/src/users/containers/Users.tsx b/scm-ui/ui-webapp/src/users/containers/Users.tsx index f5c5bc8ad2..40f762cf6d 100644 --- a/scm-ui/ui-webapp/src/users/containers/Users.tsx +++ b/scm-ui/ui-webapp/src/users/containers/Users.tsx @@ -34,10 +34,6 @@ type Props = RouteComponentProps & page: number; usersLink: string; - // context objects - history: History; - location: any; - // dispatch functions fetchUsersByPage: (link: string, page: number, filter?: string) => void; };