Skip to content

Commit

Permalink
docs: use ReactIconsProvider in example and usage
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammedFaragallah committed May 31, 2020
1 parent 995bf15 commit 15ac43a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ yarn install react-icons-context
import React from 'react';

import {
ReactIconsContext,
ReactIconsProvider,
defaultIcons,
SocialIcon,
} from 'react-icons-context';

const App = () => {
return (
<ReactIconsContext.Provider value={defaultIcons}>
<ReactIconsProvider value={defaultIcons}>
<SocialIcon network="facebook" />
<SocialIcon url="https://github.com/MohammedFaragallah" />
</ReactIconsContext.Provider>
</ReactIconsProvider>
);
};
```
Expand Down
6 changes: 3 additions & 3 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';

import { Box, CssBaseline } from '@material-ui/core';
import {
ReactIconsContext,
ReactIconsProvider,
defaultIcons,
SocialIcon,
SocialIconProps,
Expand All @@ -28,7 +28,7 @@ const mySocials: SocialIconProps[] = [

const App = () => {
return (
<ReactIconsContext.Provider value={defaultIcons}>
<ReactIconsProvider value={defaultIcons}>
<CssBaseline />
<Box
width={'100vw'}
Expand All @@ -43,7 +43,7 @@ const App = () => {
</Box>
))}
</Box>
</ReactIconsContext.Provider>
</ReactIconsProvider>
);
};

Expand Down

0 comments on commit 15ac43a

Please sign in to comment.