Skip to content

Commit

Permalink
Remove IconContext provider
Browse files Browse the repository at this point in the history
Signed-off-by: Vessy Shestorkina <46304479+Ve33y@users.noreply.github.com>
  • Loading branch information
Ve33y committed May 12, 2023
1 parent 6192d93 commit 44009bf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/Api/JsonLink/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { FormattedMessage } from 'react-intl';
import { FaRobot } from 'react-icons/fa';
import { IconContext } from 'react-icons';
import styles from './index.module.scss';
import type { FC } from 'react';

Expand All @@ -15,9 +14,7 @@ const JsonLink: FC<JsonLinkProps> = ({ fileName, version }) => (
href={`https://nodejs.org/docs/latest-${version}.x/api/${fileName}.json`}
>
<FormattedMessage id="components.api.jsonLink.title" tagName="span" />
<IconContext.Provider value={{ className: styles.FaRobotIcon }}>
<FaRobot />
</IconContext.Provider>
<FaRobot className={styles.FaRobotIcon} />
</a>
</div>
);
Expand Down

0 comments on commit 44009bf

Please sign in to comment.