-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature - update state management (#6)
* refresh * switch to react 17 * bump version
- Loading branch information
Ryan Sites
authored
Jun 1, 2021
1 parent
fa51952
commit e1a3661
Showing
70 changed files
with
8,556 additions
and
12,117 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,18 +1,25 @@ | ||
const path = require("path"); | ||
|
||
const toPath = (_path) => path.join(process.cwd(), _path); | ||
|
||
module.exports = { | ||
"stories": [ | ||
"../src/stories/*.@(tsx|mdx)" | ||
], | ||
"addons": [ | ||
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"], | ||
addons: [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/preset-create-react-app" | ||
"@storybook/preset-create-react-app", | ||
], | ||
typescript: { | ||
check: false, | ||
checkOptions: {}, | ||
reactDocgen: 'react-docgen-typescript', | ||
reactDocgenTypescriptOptions: { | ||
shouldExtractLiteralValuesFromEnum: true, | ||
propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true), | ||
}, | ||
} | ||
} | ||
webpackFinal: async (config) => { | ||
return { | ||
...config, | ||
resolve: { | ||
...config.resolve, | ||
alias: { | ||
...config.resolve.alias, | ||
"@emotion/core": toPath("node_modules/@emotion/react"), | ||
"emotion-theming": toPath("node_modules/@emotion/react"), | ||
}, | ||
}, | ||
}; | ||
}, | ||
}; |
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,20 +1 @@ | ||
import { addDecorator } from "@storybook/react"; | ||
import * as React from "react"; | ||
import { CSSReset, ThemeProvider } from "@chakra-ui/core"; | ||
import '@storybook/addon-console'; | ||
|
||
|
||
export const parameters = { | ||
controls: { expanded: false }, | ||
}; | ||
|
||
const AppProvider = ({ children }) => { | ||
return ( | ||
<ThemeProvider> | ||
<CSSReset /> | ||
{children} | ||
</ThemeProvider> | ||
); | ||
}; | ||
|
||
addDecorator(storyFn => <AppProvider>{storyFn()}</AppProvider>); | ||
import "@storybook/addon-console"; |
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,6 +1,5 @@ | ||
{ | ||
"recommendations": [ | ||
"samverschueren.linter-xo", | ||
"esbenp.prettier-vscode" | ||
] | ||
} |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.