mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-04 13:48:56 +02:00
Update stateTransitions
property in UI to match new API prop (#10438)
We renamed the property returned from the API, so we also need to update the UI.
This commit is contained in:
parent
a2d179e1f3
commit
c7fe43db71
@ -351,7 +351,7 @@ export const ChangeRequestOverview: FC = () => {
|
||||
<StyledAsideBox>
|
||||
<ChangeRequestTimeline
|
||||
{...timelineProps}
|
||||
timestamps={changeRequest.stateTransitionTimestamps}
|
||||
timestamps={changeRequest.stateTimestamps}
|
||||
/>
|
||||
<ConditionallyRender
|
||||
condition={approversEnabled}
|
||||
|
@ -24,7 +24,7 @@ import {
|
||||
} from './change-request-timeline-steps.ts';
|
||||
|
||||
export type ISuggestChangeTimelineProps = {
|
||||
timestamps?: ChangeRequestType['stateTransitionTimestamps']; // todo: update with flag `timestampsInChangeRequestTimeline`
|
||||
timestamps?: ChangeRequestType['stateTimestamps'];
|
||||
} & (
|
||||
| {
|
||||
state: Exclude<ChangeRequestState, 'Scheduled'>;
|
||||
|
@ -19,7 +19,7 @@ type BaseChangeRequest = {
|
||||
rejections: IChangeRequestApproval[];
|
||||
comments: IChangeRequestComment[];
|
||||
conflict?: string;
|
||||
stateTransitionTimestamps?: Partial<Record<ChangeRequestState, string>>; // todo(timestampsInChangeRequestTimeline): make sure this matches the model and what we return from the API
|
||||
stateTimestamps?: Partial<Record<ChangeRequestState, string>>;
|
||||
};
|
||||
|
||||
export type UnscheduledChangeRequest = BaseChangeRequest & {
|
||||
|
Loading…
Reference in New Issue
Block a user