Merge pull request #725 from navi-infra/infra-3971-jit

INFRA-3971 | Harinder | Changes in ReviewsInfo type as the JitReviewDto was updated (extended from JitRequestDto)
This commit is contained in:
Harinder Singh
2024-11-22 14:43:34 +00:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ export const RequestsComponent = () => {
onClick={() => {
reviewRequest(id, 'close');
}}
disabled={status === 'APPROVED' || status === 'REJECTED' || status === 'CLOSED'}
disabled={status !== 'PENDING'}
/>
</div>
),

View File

@@ -34,7 +34,7 @@ export const ReviewsComponent = () => {
},
{
key: 'ID',
value: ({ jitRequestId }: ReviewsInfo) => jitRequestId,
value: ({ id }: ReviewsInfo) => id,
},
{
key: 'User',

View File

@@ -34,8 +34,8 @@ export type RequestsInfo = {
};
export type ReviewsInfo = {
id: number;
jitApprovalId: number;
jitRequestId: number;
requestedFor: string;
team: string;
vertical: string;