Browse Source

feat(insights): update overview images

Connor Prussin 9 months ago
parent
commit
586933e6f1

+ 8 - 0
apps/insights/src/components/Overview/index.module.scss

@@ -64,3 +64,11 @@
     }
   }
 }
+
+html[data-theme="dark"] .lightImage {
+  display: none;
+}
+
+html[data-theme="light"] .darkImage {
+  display: none;
+}

+ 22 - 4
apps/insights/src/components/Overview/index.tsx

@@ -4,8 +4,10 @@ import { CrossfadeTabPanels } from "@pythnetwork/component-library/CrossfadeTabP
 import { Tabs } from "@pythnetwork/component-library/unstyled/Tabs";
 
 import styles from "./index.module.scss";
-import PriceFeeds from "./price-feeds.svg";
-import Publishers from "./publishers.svg";
+import PriceFeedsDark from "./price-feeds-dark.svg";
+import PriceFeedsLight from "./price-feeds-light.svg";
+import PublishersDark from "./publishers-dark.svg";
+import PublishersLight from "./publishers-light.svg";
 import { TabList } from "./tab-list";
 import {
   totalVolumeTraded,
@@ -138,8 +140,24 @@ export const Overview = () => (
       </section>
       <CrossfadeTabPanels
         items={[
-          { id: "publishers", children: <Publishers /> },
-          { id: "price feeds", children: <PriceFeeds /> },
+          {
+            id: "publishers",
+            children: (
+              <>
+                <PublishersDark className={styles.darkImage} />
+                <PublishersLight className={styles.lightImage} />
+              </>
+            ),
+          },
+          {
+            id: "price feeds",
+            children: (
+              <>
+                <PriceFeedsDark className={styles.darkImage} />
+                <PriceFeedsLight className={styles.lightImage} />
+              </>
+            ),
+          },
         ]}
       />
     </Tabs>

File diff suppressed because it is too large
+ 13 - 0
apps/insights/src/components/Overview/price-feeds-dark.svg


File diff suppressed because it is too large
+ 13 - 0
apps/insights/src/components/Overview/price-feeds-light.svg


File diff suppressed because it is too large
+ 0 - 13
apps/insights/src/components/Overview/price-feeds.svg


File diff suppressed because it is too large
+ 19 - 0
apps/insights/src/components/Overview/publishers-dark.svg


File diff suppressed because it is too large
+ 19 - 0
apps/insights/src/components/Overview/publishers-light.svg


File diff suppressed because it is too large
+ 0 - 19
apps/insights/src/components/Overview/publishers.svg


Some files were not shown because too many files changed in this diff