From e6b03408be0ddd3fa93b9157fa6711e055779398 Mon Sep 17 00:00:00 2001 From: Enzo Vezzaro Date: Thu, 2 Jun 2022 11:12:02 -0400 Subject: [PATCH] fix locale path --- src/components/@shared/Price/PriceUnit/index.stories.tsx | 2 +- src/components/@shared/Price/PriceUnit/index.tsx | 1 - src/components/@shared/Price/index.stories.tsx | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/@shared/Price/PriceUnit/index.stories.tsx b/src/components/@shared/Price/PriceUnit/index.stories.tsx index fb360ec96..5aef1d176 100644 --- a/src/components/@shared/Price/PriceUnit/index.stories.tsx +++ b/src/components/@shared/Price/PriceUnit/index.stories.tsx @@ -1,7 +1,7 @@ import React from 'react' import { ComponentStory, ComponentMeta } from '@storybook/react' import PriceUnit, { PriceUnitProps } from '@shared/Price/PriceUnit' -import { locale } from '.storybook/__mockdata__' +import { locale } from '../../../../../.storybook/__mockdata__' export default { title: 'Component/@shared/Price/PriceUnit', diff --git a/src/components/@shared/Price/PriceUnit/index.tsx b/src/components/@shared/Price/PriceUnit/index.tsx index d886c4802..98d803b90 100644 --- a/src/components/@shared/Price/PriceUnit/index.tsx +++ b/src/components/@shared/Price/PriceUnit/index.tsx @@ -2,7 +2,6 @@ import React, { ReactElement } from 'react' import { formatCurrency } from '@coingecko/cryptoformat' import Conversion from '../Conversion' import styles from './index.module.css' -import { useUserPreferences } from '@context/UserPreferences' import Badge from '@shared/atoms/Badge' export function formatPrice(price: string, locale: string): string { diff --git a/src/components/@shared/Price/index.stories.tsx b/src/components/@shared/Price/index.stories.tsx index e465b5513..f33bd1a7e 100644 --- a/src/components/@shared/Price/index.stories.tsx +++ b/src/components/@shared/Price/index.stories.tsx @@ -2,7 +2,7 @@ import React from 'react' import { ComponentStory, ComponentMeta } from '@storybook/react' import Price, { PriceProps } from '@shared/Price' import { AccessDetails } from 'src/@types/Price' -import { locale } from '.storybook/__mockdata__' +import { locale } from '../../../../.storybook/__mockdata__' export default { title: 'Component/@shared/Price',