This PR makes some changes to the InquiryButtons component and its children to follow the latest Relay best-practices, and to remove unused code. These changes include:
Renaming InquiryButtons to ContactGalleryButton to match BuyNowButton and MakeOfferButtonFragmentContainer.
Removing the unused alternative button labels.
Making ContactGalleryButton and InquiryModal fetch data using a useFragment hook instead of createFragmentContainer.
Making the InquiryModal component submit an inquiry with a useMutation hook instead of commitMutation.
PR Checklist
[x] I have tested my changes on iOS and Android.
[x] I hid my changes behind a [feature flag], or they don't need one.
[x] I have included screenshots or videos, or I have not changed the UI.
[x] I have added tests, or my changes don't require any.
[x] I added an [app state migration], or my changes do not require one.
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added a changelog entry below, or my changes do not require one.
Changelog updates
### Changelog updates
#### Dev changes
- InquiryModal uses a useFragment hook to populate artwork data
- InquiryModal uses a useMutation hook to submit inquiries
- InquiryButtons renamed to ContactGalleryButton
- ContactGalleryButton uses a useFragment to populate artwork data
This PR makes some changes to the
InquiryButtons
component and its children to follow the latest Relay best-practices, and to remove unused code. These changes include:InquiryButtons
toContactGalleryButton
to matchBuyNowButton
andMakeOfferButtonFragmentContainer
.ContactGalleryButton
andInquiryModal
fetch data using auseFragment
hook instead ofcreateFragmentContainer
.InquiryModal
component submit an inquiry with auseMutation
hook instead ofcommitMutation
.PR Checklist
Changelog updates
### Changelog updates #### Dev changes - InquiryModal uses a useFragment hook to populate artwork data - InquiryModal uses a useMutation hook to submit inquiries - InquiryButtons renamed to ContactGalleryButton - ContactGalleryButton uses a useFragment to populate artwork data