718fe762fa
* Return formatted cost and sales price for MarketingCampaigns. * Display formatted cost and sales number in Campaigns card. * Use price formatting. * Format decimal places based on currency. * Add changelog. * Fix type issue is useCampaigns.test.ts. * Use wp_strip_all_tags to respect currency symbol positioning settings. Without wp_strip_all_tags, the result contains <bdi> element, and it causes browser to show the currency symbol in unexpected unwanted position. * Fix PHP linting issue. * Fix tests in useCampaigns.test.ts. * Use html_entity_decode to remove dangerouslySetInnerHTML usage. * Remove unneeded code formatting in Campaigns.tsx. * Add explanation comment for `get_formatted_price`. * Fix PHP lint error. * Use map instead of filter to get price format. * Add code comment. * Get currency info based on user locale or default locale. * Use locales in locale-info.php instead of currency-info.php. Co-authored-by: Bartosz Budzanowski <bartosz.budzanowski@automattic.com> * Code formatting and fix code comment. * Fix lint errors. --------- Co-authored-by: Bartosz Budzanowski <bartosz.budzanowski@automattic.com> |
||
---|---|---|
.. | ||
components | ||
coupons | ||
data | ||
data-multichannel | ||
hooks | ||
overview-multichannel | ||
types | ||
utils | ||
README.md |
README.md
Marketing
This folder contains the components used in the Marketing page.