diff --git a/sass/css/_shop.scss b/sass/css/_shop.scss index 2a527a23..48fd8a61 100644 --- a/sass/css/_shop.scss +++ b/sass/css/_shop.scss @@ -323,9 +323,11 @@ button { } } span { - margin-left: 16px; width: 28px; } + .span-with-margin { + margin-left: 16px; + } } > .summary-form { diff --git a/static/js/shop/CardWarnings.jsx b/static/js/shop/CardWarnings.jsx index 5c58a6e6..40d6be8f 100644 --- a/static/js/shop/CardWarnings.jsx +++ b/static/js/shop/CardWarnings.jsx @@ -39,7 +39,7 @@ export function WarningIndicator({crate_index, card_index}) { const max_level = MaxLevel(warnings); return ( ) diff --git a/static/js/shop/OrderSummary.jsx b/static/js/shop/OrderSummary.jsx index 563c730e..7d63568d 100644 --- a/static/js/shop/OrderSummary.jsx +++ b/static/js/shop/OrderSummary.jsx @@ -14,7 +14,6 @@ import {useRenderCount} from "@uidotdev/usehooks"; export function OrderSummary() { // #!render_count const renderCount = useRenderCount(); - const clearAll = useShopStore((state) => state.clearAll); // #!render_count console.log("OrderSummary renders: ", renderCount) @@ -23,19 +22,6 @@ export function OrderSummary() {
- Reset the order - - - | -{!!crate_name ? crate_name : crate_type.name + " #" + crate_index} |
- {`${currency} ${formatMoney(crate_type.price)}`}
+
+ {crate_mode_displayed && `${currency} ${formatMoney(crate_type.price)}`}
{
- modes_order.includes(crate_mode) ? (
+ crate_mode_displayed ? (
- ) :
+ ) :
}
diff --git a/static/js/shop/options/SummaryPopup.jsx b/static/js/shop/options/SummaryPopup.jsx
index bb43ef42..3485e458 100644
--- a/static/js/shop/options/SummaryPopup.jsx
+++ b/static/js/shop/options/SummaryPopup.jsx
@@ -76,7 +76,7 @@ export function SummaryPopup({id, options, data}) {
return (
-
|