-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
theme is not exported from react-trip-date #13
Comments
@ionescho Hi, which version are you using? |
@samsam-ahmadi the latest one, just installed it with npm install --save react-trip-date and it came as 1.5.1. |
@ionescho If you are following the old documentation is wrong, In the new version don't need to get the theme from the package and put it to ThemeProvider we handle it in the inner of the component. In this version, you need to create an object and fill it with this structure: const theme = {
primary: {
light: "#757ce8",
main: "#3f50b5",
dark: "#002884",
},
grey: {
700: "#707070",
900: "#1b1b1d",
},
background: {
default: "#f5f5f5",
},
text: {
disabled: "#BABABA",
},
};
<DatePicker theme={theme} onChange={dates => console.log("dates", dates)} />
|
Alright, clear. Thanks |
@ionescho NP. I couldn't find a way to tell them update their page. :(( |
The text was updated successfully, but these errors were encountered: