gerhat / material-ui-formik-components

Formik ready material ui components
MIT License
85 stars 13 forks source link

Update documentation so developers know how to directly import #8

Closed pmacom closed 5 years ago

pmacom commented 5 years ago

Our project doesn't plan on using the date picker at any point. (I kind of think it's ugly tbh). If a developer is importing like

import { TextField, Select } from "material-ui-formik-components";

The compiler will complain about not having the material-ui-picker library. It should be mentioned that they can import like this as well.

import Select from "material-ui-formik-components/Select";
gerhat commented 5 years ago

@pmacom thanks a lot for your input. Both documentation and example have been updated. How come import Select from "material-ui-formik-components/Select"; works for you?

I had to write it with curly brackets like this: import { Select } from "material-ui-formik-components/Select";

pmacom commented 5 years ago

You're right. Sorry for the mixup. 👍