From caa2bc31f152d2d23681f426ec2aff0692b011a7 Mon Sep 17 00:00:00 2001 From: Marley Powell Date: Fri, 12 Nov 2021 11:19:06 +0000 Subject: [PATCH] refactor: Updated `PullRequestCard` to use `Link` from `@backstage/core-components`. Signed-off-by: Marley Powell --- .../lib/PullRequestCard/PullRequestCard.tsx | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/plugins/azure-devops/src/components/PullRequestsPage/lib/PullRequestCard/PullRequestCard.tsx b/plugins/azure-devops/src/components/PullRequestsPage/lib/PullRequestCard/PullRequestCard.tsx index cfb0a121db..181e016e93 100644 --- a/plugins/azure-devops/src/components/PullRequestsPage/lib/PullRequestCard/PullRequestCard.tsx +++ b/plugins/azure-devops/src/components/PullRequestsPage/lib/PullRequestCard/PullRequestCard.tsx @@ -14,10 +14,10 @@ * limitations under the License. */ -import { Card, CardContent, CardHeader, Link } from '@material-ui/core'; +import { Avatar, Link } from '@backstage/core-components'; +import { Card, CardContent, CardHeader } from '@material-ui/core'; import { AutoCompleteIcon } from '../AutoCompleteIcon'; -import { Avatar } from '@backstage/core-components'; import { DashboardPullRequest } from '@backstage/plugin-azure-devops-common'; import { DateTime } from 'luxon'; import { PullRequestCardPolicies } from './PullRequestCardPolicies'; @@ -62,24 +62,14 @@ export const PullRequestCard = ({ simplified, }: PullRequestCardProps) => { const title = ( - + {pullRequest.title} ); const subheader = ( - + {pullRequest.repository?.name} {' '} ยท{' '}