Jelajahi Sumber

Move some files around

Filip Hallqvist 1 bulan lalu
induk
melakukan
cd07cf1cbd

+ 1 - 1
apps/insights/src/app/price-feeds/[slug]/(main)/loading.ts

@@ -1 +1 @@
-export { ChartPageLoading as default } from "../../../../components/PriceFeed/chart-page";
+export { ChartPageLoading as default } from "../../../../components/PriceFeed/Chart/chart-page";

+ 1 - 1
apps/insights/src/app/price-feeds/[slug]/(main)/page.ts

@@ -1,3 +1,3 @@
-export { ChartPage as default } from "../../../../components/PriceFeed/chart-page";
+export { ChartPage as default } from "../../../../components/PriceFeed/Chart/chart-page";
 
 export const revalidate = 3600;

+ 0 - 0
apps/insights/src/components/PriceFeed/chart-page.module.scss → apps/insights/src/components/PriceFeed/Chart/chart-page.module.scss


+ 1 - 1
apps/insights/src/components/PriceFeed/chart-page.tsx → apps/insights/src/components/PriceFeed/Chart/chart-page.tsx

@@ -5,7 +5,7 @@ import { Spinner } from "@pythnetwork/component-library/Spinner";
 
 import { Chart } from "./chart";
 import styles from "./chart-page.module.scss";
-import { getFeed } from "./get-feed";
+import { getFeed } from "../get-feed";
 
 type Props = {
   params: Promise<{

+ 0 - 0
apps/insights/src/components/PriceFeed/chart.module.scss → apps/insights/src/components/PriceFeed/Chart/chart.module.scss


+ 3 - 3
apps/insights/src/components/PriceFeed/chart.tsx → apps/insights/src/components/PriceFeed/Chart/chart.tsx

@@ -10,9 +10,9 @@ import { useEffect, useRef, useCallback } from "react";
 import { z } from "zod";
 
 import styles from "./chart.module.scss";
-import { useLivePriceData } from "../../hooks/use-live-price-data";
-import { usePriceFormatter } from "../../hooks/use-price-formatter";
-import { Cluster } from "../../services/pyth";
+import { useLivePriceData } from "../../../hooks/use-live-price-data";
+import { usePriceFormatter } from "../../../hooks/use-price-formatter";
+import { Cluster } from "../../../services/pyth";
 
 type Props = {
   symbol: string;