From 3808bced051d512b146444ec376acffa98825399 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rui=20Sim=C3=A3o?= Date: Wed, 13 Sep 2023 16:31:34 +0100 Subject: [PATCH 1/2] fix(components): coin icon types --- packages/components/src/CoinIcon/CoinIcon.tsx | 5 +++-- packages/components/src/CoinIcon/LPCoinIcon.tsx | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/components/src/CoinIcon/CoinIcon.tsx b/packages/components/src/CoinIcon/CoinIcon.tsx index 682e08db0..f548a62df 100644 --- a/packages/components/src/CoinIcon/CoinIcon.tsx +++ b/packages/components/src/CoinIcon/CoinIcon.tsx @@ -1,12 +1,13 @@ -import { ForwardRefExoticComponent, forwardRef } from 'react'; +import { forwardRef } from 'react'; import { IconProps } from '@just_testing13/icons'; import * as coins from '../../../icons/src/svg/coin'; import { FallbackIcon } from './FallbackIcon'; import { LPCoinIcon } from './LPCoinIcon'; +import { CoinComponent } from './types'; -const DATA = coins as unknown as Record>; +const DATA = coins as unknown as Record; type Props = { ticker: string; diff --git a/packages/components/src/CoinIcon/LPCoinIcon.tsx b/packages/components/src/CoinIcon/LPCoinIcon.tsx index 248714825..c0c36ccaa 100644 --- a/packages/components/src/CoinIcon/LPCoinIcon.tsx +++ b/packages/components/src/CoinIcon/LPCoinIcon.tsx @@ -1,12 +1,13 @@ -import { ForwardRefExoticComponent, forwardRef, useCallback } from 'react'; +import { forwardRef, useCallback } from 'react'; import { Icon } from '@just_testing13/icons'; import { CoinIconProps } from './CoinIcon'; import { FallbackIcon } from './FallbackIcon'; +import { CoinComponent } from './types'; type Props = { tickers: string[]; - data: Record>; + data: Record; }; type InheritAttrs = Omit; From 0160a8ec280a15560f1d4871c880540398c90586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sim=C3=A3o?= Date: Wed, 13 Sep 2023 16:32:15 +0100 Subject: [PATCH 2/2] Create fifty-poets-reflect.md --- .changeset/fifty-poets-reflect.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fifty-poets-reflect.md diff --git a/.changeset/fifty-poets-reflect.md b/.changeset/fifty-poets-reflect.md new file mode 100644 index 000000000..3f76a1bb2 --- /dev/null +++ b/.changeset/fifty-poets-reflect.md @@ -0,0 +1,5 @@ +--- +"@just_testing13/components": patch +--- + +fix(components): coin icon types