change Labels type to Label
Signed-off-by: Ceri Goff <ceri.goff@aa.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
import React, { PropsWithChildren, FunctionComponent } from 'react';
|
||||
import { Box, Paper, CardActionArea } from '@material-ui/core';
|
||||
import CardHeader from './CardHeader';
|
||||
import { Labels } from '../../utils/types';
|
||||
import { Label } from '../../utils/types';
|
||||
|
||||
type Props = {
|
||||
title: string;
|
||||
@@ -28,7 +28,7 @@ type Props = {
|
||||
repositoryName: string;
|
||||
isDraft: boolean;
|
||||
repositoryIsArchived: boolean;
|
||||
labels?: Labels[];
|
||||
labels?: Label[];
|
||||
};
|
||||
|
||||
const Card: FunctionComponent<Props> = (props: PropsWithChildren<Props>) => {
|
||||
|
||||
@@ -19,7 +19,7 @@ import { getElapsedTime } from '../../utils/functions';
|
||||
import { UserHeader } from '../UserHeader';
|
||||
import { DraftPrIcon } from '../icons/DraftPr';
|
||||
import UnarchiveIcon from '@material-ui/icons/Unarchive';
|
||||
import { Labels } from '../../utils/types';
|
||||
import { Label } from '../../utils/types';
|
||||
import { useFormClasses } from './styles';
|
||||
|
||||
type Props = {
|
||||
@@ -31,7 +31,7 @@ type Props = {
|
||||
repositoryName: string;
|
||||
isDraft: boolean;
|
||||
repositoryIsArchived: boolean;
|
||||
labels?: Labels[];
|
||||
labels?: Label[];
|
||||
};
|
||||
|
||||
const CardHeader: FunctionComponent<Props> = (props: Props) => {
|
||||
|
||||
+2
-2
@@ -19,7 +19,7 @@ import {
|
||||
getChangeRequests,
|
||||
getCommentedReviews,
|
||||
} from '../../utils/functions';
|
||||
import { Reviews, Author, Labels } from '../../utils/types';
|
||||
import { Reviews, Author, Label } from '../../utils/types';
|
||||
import { Card } from '../Card';
|
||||
import { UserHeaderList } from '../UserHeaderList';
|
||||
|
||||
@@ -33,7 +33,7 @@ type Props = {
|
||||
repositoryName: string;
|
||||
repositoryIsArchived: boolean;
|
||||
isDraft: boolean;
|
||||
labels?: Labels[];
|
||||
labels?: Label[];
|
||||
};
|
||||
|
||||
const PullRequestCard: FunctionComponent<Props> = (props: Props) => {
|
||||
|
||||
@@ -76,7 +76,7 @@ export type Repository = {
|
||||
isArchived: boolean;
|
||||
};
|
||||
|
||||
export type Labels = {
|
||||
export type Label = {
|
||||
id: string;
|
||||
name: string;
|
||||
};
|
||||
@@ -95,7 +95,7 @@ export type PullRequest = {
|
||||
reviewDecision: ReviewDecision | null;
|
||||
isDraft: boolean;
|
||||
labels: {
|
||||
nodes: Labels[];
|
||||
nodes: Label[];
|
||||
};
|
||||
createdAt: string;
|
||||
author: Author;
|
||||
|
||||
Reference in New Issue
Block a user