Skip to content

DateTimePicker confirm/cancel button props #3161

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

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

adids1221
Copy link
Contributor

Description

DateTimePicker support confirm/cancel button props.

Changelog

DateTimePicker support confirm/cancel button props.

Additional info

MADS-4298

Comment on lines 243 to 253
iconStyle={{tintColor: Colors.$iconDefault}}
onPress={toggleExpandableOverlay}
testID={`${testID}.cancel`}
{...cancelButtonProps}
/>
<Button
link
iconSource={Assets.icons.check}
onPress={onDonePressed}
testID={`${testID}.done`}
{...confirmButtonProps}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure to pass our internal onPress after the spread otherwise we might lost the functionality

@adids1221 adids1221 requested a review from ethanshar July 7, 2024 14:30
@ethanshar ethanshar merged commit e53fd3c into master Jul 8, 2024
1 check passed
@ethanshar ethanshar deleted the feat/DateTimePicker_confirm_cancel_button_props branch July 8, 2024 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants