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() {
- - - - - - - diff --git a/static/js/shop/Shop.jsx b/static/js/shop/Shop.jsx index 59f56abe..7e5e63e7 100644 --- a/static/js/shop/Shop.jsx +++ b/static/js/shop/Shop.jsx @@ -53,12 +53,15 @@ export function Shop() { Drag and drop the cards you want into the crate below to see how - the combination would look like. Setup card's configuration by tapping at the top of the - card, most of the options can be modified after shipment. If you have any issues with - this ordering system, or if you need other configurations, email us directly anytime - at sales@m-labs.hk. The price is estimated and must - be confirmed by a quote.

)} +

+ Drag and drop the cards you want into the crate below to see how + the combination would look like. Configure the card settings by tapping on the top of + the card; many of the options can be adjusted even after the card has been shipped. + If you have any issues with this ordering system, or if you need other configurations, + email us directly anytime at sales@m-labs.hk. + The price is estimated and must be confirmed by a quote. +

+ )} /> )}> diff --git a/static/js/shop/SummaryCrateCard.jsx b/static/js/shop/SummaryCrateCard.jsx index 29444cef..81018dbb 100644 --- a/static/js/shop/SummaryCrateCard.jsx +++ b/static/js/shop/SummaryCrateCard.jsx @@ -54,7 +54,7 @@ export function SummaryCrateCard({crate_index, card_index}) { {`${currency} ${formatMoney(card.price)}`}
  ))} {((options && options_data) ? ( diff --git a/static/js/shop/SummaryCrateHeader.jsx b/static/js/shop/SummaryCrateHeader.jsx index f8f69237..7f70ca36 100644 --- a/static/js/shop/SummaryCrateHeader.jsx +++ b/static/js/shop/SummaryCrateHeader.jsx @@ -19,6 +19,7 @@ export function SummaryCrateHeader({crate_index}) { const crate_id = useShopStore((state) => state.crates[crate_index].id); const crate_name = useShopStore((state) => state.crates[crate_index].name); const modes_order = useShopStore((state) => state.modes_order); + const crate_mode_displayed = modes_order.includes(crate_mode); // #!render_count @@ -31,18 +32,19 @@ export function SummaryCrateHeader({crate_index}) {
- 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 (
-