-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(insights): build header & tabs for price feed details page
- Loading branch information
Showing
70 changed files
with
3,746 additions
and
3,295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* This file only exists because in react 19, the JSX namespace was moved under | ||
* the React export. However, some libraries (e.g. react-markdown) still have | ||
* some things typed as `JSX.<Something>`. Until those libraries update to | ||
* import the namespace correctly, we'll need this declaration file in place to | ||
* expose JSX via the old global location. | ||
*/ | ||
|
||
import type { JSX as Jsx } from "react/jsx-runtime"; | ||
|
||
declare global { | ||
namespace JSX { | ||
type ElementClass = Jsx.ElementClass; | ||
type Element = Jsx.Element; | ||
type IntrinsicElements = Jsx.IntrinsicElements; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type { Metadata } from "next"; | ||
|
||
import { client } from "../../../services/pyth"; | ||
export { PriceFeedLayout as default } from "../../../components/PriceFeed/layout"; | ||
|
||
export const metadata: Metadata = { | ||
title: "Price Feeds", | ||
}; | ||
|
||
export const generateStaticParams = async () => { | ||
const data = await client.getData(); | ||
return data.symbols.map((symbol) => ({ slug: encodeURIComponent(symbol) })); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Chart as default } from "../../../components/PriceFeed/chart"; |
1 change: 1 addition & 0 deletions
1
apps/insights/src/app/price-feeds/[slug]/price-components/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { PriceComponents as default } from "../../../../components/PriceFeed/price-components"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { PriceFeedsLayout as default } from "../../components/PriceFeeds/layout"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
import type { Metadata } from "next"; | ||
|
||
export { PriceFeeds as default } from "../../components/PriceFeeds"; | ||
|
||
export const metadata: Metadata = { | ||
title: "Price Feeds", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
import type { Metadata } from "next"; | ||
|
||
export { Publishers as default } from "../../components/Publishers"; | ||
|
||
export const metadata: Metadata = { | ||
title: "Publishers", | ||
}; |
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...nts/PriceFeeds/change-percent.module.scss → ...omponents/ChangePercent/index.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.