Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
jagnani73 committed Dec 5, 2023
1 parent 5357cd1 commit 4b12cdc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "../src/tailwind-output.css";
import { themes } from "@storybook/theming";
import { GoldRushProvider } from "../src/utils/store/Goldrush";
import { CovalentProvider } from "../src/utils/store/Covalent";
// import { useDarkMode } from 'storybook-dark-mode' // uncomment out this one line for dark mode

export const parameters = {
Expand Down Expand Up @@ -53,11 +53,11 @@ import { Preview } from "@storybook/react";
const preview: Preview = {
decorators: [
(Story) => (
<GoldRushProvider
<CovalentProvider
apikey={import.meta.env.STORYBOOK_COVALENT_API_KEY}
>
<Story />
</GoldRushProvider>
</CovalentProvider>
),
],
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
TypographyH2,
TypographyH4,
} from "@/components/ui/typography";
import { useCovalentChains } from "@/utils/store";
import { useChains } from "@/utils/store/Chains";
import { type ChainItem } from "@covalenthq/client-sdk";
import { Badge } from "@/components/ui/badge";
import {
Expand All @@ -25,7 +25,7 @@ export const DecodedTransactionView: React.FC<DecodedTransactionProps> = ({
chain_name,
tx_hash,
}) => {
const { chains } = useCovalentChains();
const { chains } = useChains();

const [maybeResult, setResult] = useState<Option<DecodedEventType[]>>(None);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
PERIOD,
} from "@/utils/constants/shared.constants";
import { CHART_COLORS } from "@/utils/constants/shared.constants";
import { useCovalent } from "@/utils/store";
import { useCovalent } from "@/utils/store/Covalent";
import { type NFTFloorPriceViewProps } from "@/utils/types/molecules.types";

export const NFTFloorPriceView: React.FC<NFTFloorPriceViewProps> = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { TypographyH4 } from "@/components/ui/typography";
import { Skeleton } from "@/components/ui/skeleton";
import { GRK_SIZES, PERIOD } from "@/utils/constants/shared.constants";
import { CHART_COLORS } from "@/utils/constants/shared.constants";
import { useCovalent } from "@/utils/store";
import { useCovalent } from "@/utils/store/Covalent";
import { type NFTSalesCountViewProps } from "@/utils/types/molecules.types";

export const NFTSalesCountView: React.FC<NFTSalesCountViewProps> = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
PERIOD,
} from "@/utils/constants/shared.constants";
import { CHART_COLORS } from "@/utils/constants/shared.constants";
import { useCovalent } from "@/utils/store";
import { useCovalent } from "@/utils/store/Covalent";
import { type NFTVolumeViewProps } from "@/utils/types/molecules.types";
import { prettifyCurrency } from "@covalenthq/client-sdk";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Separator } from "@/components/ui/separator";
import { TypographyH1, TypographyH4 } from "@/components/ui/typography";
import { useCovalent } from "@/utils/store";
import { useCovalent } from "@/utils/store/Covalent";
import { NFTSalesCountView } from "@/components/Molecules/NFTs/NFTSalesCountView/NFTSalesCountView";
import { NFTFloorPriceView } from "@/components/Molecules/NFTs/NFTFloorPriceView/NFTFloorPriceView";
import { type Option, Some, None } from "@/utils/option";
Expand Down

0 comments on commit 4b12cdc

Please sign in to comment.