-
-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: delete segment from CR #4469
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
@@ -55,7 +63,7 @@ export const ChangeRequest: VFC<IChangeRequestProps> = ({ | |||
{feature.changes.map((change, index) => ( | |||
<FeatureChange | |||
key={index} | |||
discard={ | |||
actions={ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renaming old confusing prop name
@@ -60,7 +57,7 @@ const StyledPopover = styled(Popover)(({ theme }) => ({ | |||
export const ChangeActions: FC<{ | |||
changeRequest: IChangeRequest; | |||
feature: string; | |||
change: IFeatureChange; | |||
change: IChange; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now can take in all type of changes
actions={ | ||
<ChangeActions | ||
changeRequest={changeRequest} | ||
feature={segmentChange.name} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. segmentChange.name is not a feature name, but a current segment name of the segment you're changing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, currently ChangeActions has actions for delete and edit. Edit needs a name of something. Currently providing segment name, but when we implement edit of segment change, then we need to refactor this a little.
No description provided.