Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
xeoneux committed Mar 15, 2021
1 parent 3b3d5a2 commit bea1d49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.next
es6
lib
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,7 @@ $ npm install next-dark-mode
import withDarkMode from 'next-dark-mode'

function MyApp({ Component, darkMode, pageProps }) {
const {
autoModeActive,
autoModeSupported,
darkModeActive,
} = darkMode
const { autoModeActive, autoModeSupported, darkModeActive } = darkMode

return (
<ThemeProvider theme={{ darkMode: darkModeActive, ...(other values) }}>
Expand All @@ -116,7 +112,6 @@ $ npm install next-dark-mode
export default withDarkMode(MyApp)
```


## Configuration

The `withDarkMode` function accepts a `config` object as its second argument. Every key is optional with default values mentioned:
Expand Down

1 comment on commit bea1d49

@vercel
Copy link

@vercel vercel bot commented on bea1d49 Mar 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.