-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from performant-software/feature/storybook
Install Storybook
- Loading branch information
Showing
76 changed files
with
19,582 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
REACT_APP_GOOGLE_MAPS_API_KEY='AIzaSyD0aqCeWnxKyU4srm6o44hX6nPb74_c2BQ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[ignore] | ||
|
||
[include] | ||
|
||
[libs] | ||
|
||
[lints] | ||
|
||
[options] | ||
|
||
[strict] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
stories: [ | ||
'../stories/**/*.stories.js' | ||
], | ||
addons: [ | ||
'@storybook/addon-actions', | ||
'@storybook/addon-knobs/register', | ||
'@storybook/addon-links' | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import { I18nextProvider } from 'react-i18next'; | ||
import { addDecorator, addParameters } from '@storybook/react'; | ||
import i18n from '../src/i18n/i18n'; | ||
import 'semantic-ui-css/semantic.min.css'; | ||
|
||
addDecorator(storyFn => ( | ||
<I18nextProvider i18n={i18n}>{storyFn()}</I18nextProvider> | ||
)); | ||
|
||
addParameters({ | ||
options: { | ||
showRoots: true | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,21 @@ | ||
# react-components | ||
A library of shared React components | ||
|
||
## Development | ||
|
||
### Building | ||
``` | ||
npm run build | ||
``` | ||
|
||
#### Storybook | ||
``` | ||
npm run storybook | ||
``` | ||
|
||
## Usage | ||
|
||
### Install | ||
``` | ||
npm install performant-software/react-components | ||
``` |
Oops, something went wrong.