Skip to content

Commit 956f0c6

Browse files
committed
refactor(stylereset): renamed 'reset' to 'styleReset'
Renamed 'reset' to 'styleReset' because it's more descriptive BREAKING CHANGE: 'reset' util is renamed to 'styleReset'
1 parent 5ed506c commit 956f0c6

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.storybook/decorators/globalStyle.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import React from "react";
2-
import { createGlobalStyle } from "styled-components";
1+
import React from 'react';
2+
import { createGlobalStyle } from 'styled-components';
33

4-
import reset from "../../src/components/common/reset";
4+
import styleReset from '../../src/components/common/styleReset';
55

66
const GlobalStyle = createGlobalStyle`
7-
${reset}
7+
${styleReset}
88
`;
99

1010
export default storyFn => (

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ Apply style reset, wrap your app content with ThemeProvider with theme of your c
4343
```jsx
4444
import React from 'react';
4545
import { createGlobalStyle, ThemeProvider } from 'styled-components';
46-
import { reset, themes, List, ListItem, Divider } from 'react95';
46+
import { styleReset, themes, List, ListItem, Divider } from 'react95';
4747

48-
const ResetStyles = createGlobalStyle`
49-
${reset}
48+
const GlobalStyles = createGlobalStyle`
49+
${styleReset}
5050
`;
5151

5252
const App = () => (
5353
<div>
54-
<ResetStyles />
54+
<GlobalStyles />
5555
<ThemeProvider theme={themes.default}>
5656
<List>
5757
<ListItem>🎤 Sing</ListItem>
File renamed without changes.

src/components/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* common */
2-
export { default as reset } from './common/reset';
2+
export { default as styleReset } from './common/styleReset';
33
export { default as themes } from './common/themes';
44

55
/* components */

0 commit comments

Comments
 (0)