-
Notifications
You must be signed in to change notification settings - Fork 303
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
DTRA-1886 / Kate / Trade type updates #17501
base: master
Are you sure you want to change the base?
DTRA-1886 / Kate / Trade type updates #17501
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
A production App ID was automatically generated for this PR. (log)
Click here to copy & paste above information.
|
🚨 Lighthouse report for the changes in this PR:
Lighthouse ran with https://deriv-app-git-fork-kate-deriv-kate-dtra-1886addcarouselt-1c6c3f.binary.sx/ |
@@ -57,9 +62,9 @@ const DraggableCategory: React.FC<{ | |||
category: TDraggableListCategory; | |||
draggedItemId: string | null; | |||
onRightIconClick: (item: TDraggableListItem) => void; | |||
onAction?: () => void; | |||
}> = ({ category, draggedItemId, onRightIconClick, onAction }) => ( |
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.
onAction
was not used in this file, hence removing
render(<CarouselHeader {...mock_props} current_index={1} />); | ||
|
||
const arrow_icon = screen.getByText('LabelPairedArrowLeftMdRegularIcon'); | ||
expect(arrow_icon).toBeInTheDocument(); | ||
|
||
expect(mock_props.onPrevClick).not.toBeCalled(); | ||
userEvent.click(arrow_icon); | ||
await userEvent.click(arrow_icon); |
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.
pages={action_sheet_content} | ||
title={<Localize i18n_default_text='Trade types' />} | ||
next_icon={LabelPairedPresentationScreenSmRegularIcon} | ||
onNextButtonClick={() => sendOpenGuideToAnalytics(contract_type, 'trade_type_page')} |
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.
Added function for analytics collection. Previously it was inside Guide button, but now we are not rendering this part in trade type selection modal.
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.
cc: @vinu-deriv
⏳ Generating Lighthouse report... |
Changes:
Screenshots:
Screen.Recording.2024-11-13.at.5.54.46.PM.mov