Skip to content

Commit

Permalink
refactor(stylereset): renamed 'reset' to 'styleReset'
Browse files Browse the repository at this point in the history
Renamed 'reset' to 'styleReset' because it's more descriptive

BREAKING CHANGE: 'reset' util is renamed to 'styleReset'
  • Loading branch information
arturbien committed Apr 8, 2020
1 parent 5ed506c commit 956f0c6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .storybook/decorators/globalStyle.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from "react";
import { createGlobalStyle } from "styled-components";
import React from 'react';
import { createGlobalStyle } from 'styled-components';

import reset from "../../src/components/common/reset";
import styleReset from '../../src/components/common/styleReset';

const GlobalStyle = createGlobalStyle`
${reset}
${styleReset}
`;

export default storyFn => (
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ Apply style reset, wrap your app content with ThemeProvider with theme of your c
```jsx
import React from 'react';
import { createGlobalStyle, ThemeProvider } from 'styled-components';
import { reset, themes, List, ListItem, Divider } from 'react95';
import { styleReset, themes, List, ListItem, Divider } from 'react95';

const ResetStyles = createGlobalStyle`
${reset}
const GlobalStyles = createGlobalStyle`
${styleReset}
`;

const App = () => (
<div>
<ResetStyles />
<GlobalStyles />
<ThemeProvider theme={themes.default}>
<List>
<ListItem>🎤 Sing</ListItem>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* common */
export { default as reset } from './common/reset';
export { default as styleReset } from './common/styleReset';
export { default as themes } from './common/themes';

/* components */
Expand Down

0 comments on commit 956f0c6

Please sign in to comment.