Skip to content

feat(insights): update overview images #2337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions apps/insights/src/components/Overview/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,11 @@
}
}
}

html[data-theme="dark"] .lightImage {
display: none;
}

html[data-theme="light"] .darkImage {
display: none;
}
26 changes: 22 additions & 4 deletions apps/insights/src/components/Overview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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>
Expand Down
201 changes: 201 additions & 0 deletions apps/insights/src/components/Overview/price-feeds-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
201 changes: 201 additions & 0 deletions apps/insights/src/components/Overview/price-feeds-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
196 changes: 0 additions & 196 deletions apps/insights/src/components/Overview/price-feeds.svg

This file was deleted.

171 changes: 171 additions & 0 deletions apps/insights/src/components/Overview/publishers-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
171 changes: 171 additions & 0 deletions apps/insights/src/components/Overview/publishers-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
188 changes: 0 additions & 188 deletions apps/insights/src/components/Overview/publishers.svg

This file was deleted.

Loading