@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright 2021 The Backstage Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { makeStyles } from '@material-ui/core';
|
||||
|
||||
export const useFormClasses = makeStyles(() => ({
|
||||
labelItem: {
|
||||
display: 'flex',
|
||||
position: 'relative',
|
||||
boxSizing: 'border-box',
|
||||
textAlign: 'left',
|
||||
alignItems: 'center',
|
||||
paddingTop: 2,
|
||||
paddingBottom: 2,
|
||||
justifyContent: 'flex-start',
|
||||
textDecoration: 'none',
|
||||
paddingLeft: 2,
|
||||
paddingRight: 2,
|
||||
},
|
||||
tagBox: {
|
||||
display: 'flex',
|
||||
flexWrap: 'wrap',
|
||||
alignItems: 'center',
|
||||
maxWidth: 750,
|
||||
},
|
||||
}));
|
||||
@@ -76,6 +76,11 @@ export type Repository = {
|
||||
isArchived: boolean;
|
||||
};
|
||||
|
||||
export type Labels = {
|
||||
id: string;
|
||||
name: string;
|
||||
};
|
||||
|
||||
export type PullRequest = {
|
||||
id: string;
|
||||
repository: Repository;
|
||||
@@ -89,6 +94,9 @@ export type PullRequest = {
|
||||
state: string;
|
||||
reviewDecision: ReviewDecision | null;
|
||||
isDraft: boolean;
|
||||
labels: {
|
||||
nodes: Labels[];
|
||||
};
|
||||
createdAt: string;
|
||||
author: Author;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user