diff --git a/sass/css/_shop.scss b/sass/css/_shop.scss
index 8bb7989e..52101a4a 100644
--- a/sass/css/_shop.scss
+++ b/sass/css/_shop.scss
@@ -216,18 +216,6 @@ button {
width: 50%;
padding-right: 30px;
}
-
- > .legend {
- //d-flex justify-content-end align-self-start
- display: flex;
- justify-content: end;
- align-self: start;
- width: 50%;
- table {
- width: 75%;
- max-width: 300px;
- }
- }
}
.summary {
diff --git a/static/css/order-hardware.css b/static/css/order-hardware.css
index 0f456109..f3033ae7 100644
--- a/static/css/order-hardware.css
+++ b/static/css/order-hardware.css
@@ -108,17 +108,9 @@
}
#root-shop .panel .control > .description,
- #root-shop .panel .control > .legend,
#root-shop .crate-mode {
width: 100%;
}
- #root-shop .panel .control > .legend {
- justify-content: center;
- align-self: center;
- }
- #root-shop .panel .control > .legend tr {
- padding: 0;
- }
#root-shop .crate-mode {
text-align: left;
@@ -315,17 +307,9 @@
margin-bottom: 1.5rem;
}
- #root-shop .panel .control > .description,
- #root-shop .panel .control > .legend {
+ #root-shop .panel .control > .description {
width: 100%;
}
- #root-shop .panel .control > .legend {
- justify-content: center;
- align-self: center;
- }
- #root-shop .panel .control > .legend tr {
- padding: 0;
- }
#root-shop .panel .crate .crate-bar .crate-mode {
text-align: left;
@@ -589,17 +573,9 @@
font-size: 1.5rem;
}
- #root-shop .panel .control > .description,
- #root-shop .panel .control > .legend {
+ #root-shop .panel .control > .description {
width: 100%;
}
- #root-shop .panel .control > .legend {
- justify-content: center;
- align-self: center;
- }
- #root-shop .panel .control > .legend tr {
- padding: 0;
- }
#root-shop .panel .crate .crate-bar .crate-mode {
text-align: left;
diff --git a/static/js/shop/Legend.jsx b/static/js/shop/Legend.jsx
deleted file mode 100644
index 4543152d..00000000
--- a/static/js/shop/Legend.jsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import React from "react";
-import {useShopStore} from "./shop_store";
-
-export function LegendItem({icon, description}) {
- return (
-
diff --git a/static/js/shop/Shop.jsx b/static/js/shop/Shop.jsx
index 84eaf7c2..59f56abe 100644
--- a/static/js/shop/Shop.jsx
+++ b/static/js/shop/Shop.jsx
@@ -9,7 +9,6 @@ import {Layout} from "./Layout";
import {Backlog} from "./Backlog";
import {OrderPanel} from "./OrderPanel";
import {useShopStore} from "./shop_store";
-import {Legend} from "./Legend";
/**
* Component that renders the entire shop
@@ -60,7 +59,6 @@ export function Shop() {
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.)}
- legend={(
)}
/>
)}>
diff --git a/static/js/shop/shop_store.js b/static/js/shop/shop_store.js
index 08370aa7..7e8ad7a7 100644
--- a/static/js/shop/shop_store.js
+++ b/static/js/shop/shop_store.js
@@ -28,10 +28,6 @@ const useBacklog = ((set, get) => ({
cardIndexById: card_id => get().cards_list.findIndex((element) => (card_id === element))
}));
-const useLegend = ((set, get) => ({
- legend: shared_data.legend
-}))
-
const useCrateModes = ((set, get) => ({
crate_modes: shared_data.crateModes,
modes_order: shared_data.crateModeOrder,
@@ -454,5 +450,4 @@ export const useShopStore = createWithEqualityFn((...params) => ({
...useLayout(...params),
...useHighlighted(...params),
...useImportJSON(...params),
- ...useLegend(...params),
}))
\ No newline at end of file
diff --git a/static/js/shop_data.js b/static/js/shop_data.js
index 3375987d..2e399e93 100644
--- a/static/js/shop_data.js
+++ b/static/js/shop_data.js
@@ -3,16 +3,6 @@ const shop_data = {
API_RFQ: 'https://hooks.m-labs.hk/rfq',
currency: 'USD',
- legend: [
- {icon: "/images/shop/icon-customize.svg", description: "cards configuration available"},
- {icon: "/images/shop/icon-add.svg", description: "add a card or crate to the order"},
- {icon: "/images/shop/icon-remove.svg", description: "remove a card or crate from the order"},
- {icon: "/images/shop/icon-clear.svg", description: "remove all the cards from the crate"},
- {icon: "/images/shop/icon-warning.svg", description: "the card or crate contains errors"},
- {icon: "/images/shop/icon-reminder.svg", description: "suggestions or hints available"},
-
- ],
-
crateModes: {
rack: {
id: 'rack',