Skip to content

Commit

Permalink
Merge pull request #358 from dmtrKovalenko/develop
Browse files Browse the repository at this point in the history
Release 1.0.0-rc.6
  • Loading branch information
dmtrKovalenko committed Apr 14, 2018
2 parents 53a91a3 + a04edc0 commit cd44c06
Show file tree
Hide file tree
Showing 25 changed files with 819 additions and 124 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ yarn-error.log*
.idea/
/lib/yarn.lock
/docs/yarn.lock

# editors
.vs
.vscode
5 changes: 0 additions & 5 deletions .vscode/settings.json

This file was deleted.

7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ Now choose the library that pickers will use to work with date. We are providing
```sh
npm install date-fns@next -s
// or
npm install moment -S
npm install moment -s
// or
npm i luxon -s
```

Then teach pickers which library to use with `MuiPickerUtilsProvider`.This component takes an utils property, and makes it available down the React tree thanks to React context. It should preferably be used at the root of your component tree.
Then teach pickers which library to use with `MuiPickerUtilsProvider`. This component takes an utils property, and makes it available down the React tree thanks to React context. It should preferably be used at the root of your component tree.

```jsx
import MomentUtils from 'material-ui-pickers/utils/moment-utils';
import DateFnsUtils from 'material-ui-pickers/utils/date-fns-utils';
import LuxonUtils from 'material-ui-picker/luxon-utils;
import MuiPickersUtilsProvider from 'material-ui-pickers/utils/MuiPickersUtilsProvider';
function App() {
Expand Down
169 changes: 96 additions & 73 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cd44c06

Please sign in to comment.