Skip to content

Commit

Permalink
fix(components): coin icon types (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsimao authored Sep 13, 2023
1 parent f285842 commit df9657a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-poets-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@just_testing13/components": patch
---

fix(components): coin icon types
5 changes: 3 additions & 2 deletions packages/components/src/CoinIcon/CoinIcon.tsx
Original file line number Diff line number Diff line change
@@ -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<string, ForwardRefExoticComponent<any>>;
const DATA = coins as unknown as Record<string, CoinComponent>;

type Props = {
ticker: string;
Expand Down
5 changes: 3 additions & 2 deletions packages/components/src/CoinIcon/LPCoinIcon.tsx
Original file line number Diff line number Diff line change
@@ -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<string, ForwardRefExoticComponent<any>>;
data: Record<string, CoinComponent>;
};

type InheritAttrs = Omit<CoinIconProps, keyof Props>;
Expand Down

0 comments on commit df9657a

Please sign in to comment.