| @bigcommerce/catalyst-core | patch |
|---|
Remove unused search props, add missing search translations
Ensure the following props are passed to the HeaderSection navigation prop:
searchInputPlaceholder: t('Search.inputPlaceholder'),
searchSubmitLabel: t('Search.submitLabel'),Add the following keys to the Components.Header.Search translations:
"somethingWentWrong": "Something went wrong. Please try again.",
"inputPlaceholder": "Search products, categories, brands...",
"submitLabel": "Search"Copy all changes from this file:
- Create
searchSubmitLabel?: string;property, ensure it is passed intoSearchForm - On the
SearchForm, remove thesearchCtaLabel = 'View more',property, as it is unused, and renamesubmitLabeltosearchSubmitLabel - Ensure that
SearchFormpassessearchSubmitLabelto theSearchButton:<SubmitButton loading={isPending} submitLabel={searchSubmitLabel} /> - Remove the
searchCtaLabelproperty from theSearchResultscomponent