Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add inline prop for money component
Lukasz Szewczyk86424db6bd38
diff --git a/saleor/static/dashboard-next/components/Money/Money.tsx b/saleor/static/dashboard-next/components/Money/Money.tsxindex 5935737871..e0fc85313d 100644--- a/saleor/static/dashboard-next/components/Money/Money.tsx+++ b/saleor/static/dashboard-next/components/Money/Money.tsx@@ -10,11 +10,13 @@ export interface MoneyProp {interface MoneyProps {moneyDetalis: MoneyProp;typographyProps?: TypographyProps;+ inline?;}export const Money: React.StatelessComponent<MoneyProps> = ({moneyDetalis,- typographyProps+ typographyProps,+ inline}) => (<LocaleConsumer>{locale => {@@ -25,6 +27,9 @@ export const Money: React.StatelessComponent<MoneyProps> = ({if (typographyProps) {return <Typography {...typographyProps}>{money}</Typography>;}+ if (inline) {+ return <span>{money}</span>;+ }return <>{money}</>;}}</LocaleConsumer>