Code Monkey home page Code Monkey logo

material-ui-datetime-range-picker's People

Contributors

jkslyby avatar rehman-00001 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

material-ui-datetime-range-picker's Issues

Error getMuiTheme

ERROR in ./node_modules/material-ui-datetime-range-picker/DatePicker/DateRangePicker.js
Module not found: Error: Can't resolve 'material-ui/styles/getMuiTheme' in '../node_modules/material-ui-datetime-range-picker/DatePicker'

TypeError: Cannot read property 'prepareStyles' of undefined

`DateRangePicker.render
node_modules/babel-loader/lib/index.js??ref--6-oneOf-2!/Users/manuel/Development/Docker/vhosts/dois-react/node_modules/material-ui-datetime-range-picker/DatePicker/DateRangePicker.js:484
481 | utils = _props.utils,
482 | other = _objectWithoutProperties(_props, ['DateTimeFormat', 'autoOk', 'autoOpenField', 'blockedDateTimeRanges', 'calendarDateWidth', 'calendarTimeWidth', 'cancelLabel', 'className', 'container', 'dayButtonSize', 'dialogContainerStyle', 'end', 'endLabel', 'endLabelDate', 'endLabelTime', 'firstDayOfWeek', 'formatDisplay', 'layout', 'locale', 'mode', 'okLabel', 'onDismiss', 'onFocus', 'onShow', 'onClick', 'showCalendarDate', 'showCalendarStatus', 'start', 'startLabel', 'startLabelDate', 'startLabelTime', 'style', 'textFieldStyle', 'utils']);
483 |

484 | var prepareStyles = this.context.muiTheme.prepareStyles;
| ^ 485 | var styles = this.getStyles();
486 | var _state = this.state,
487 | selectedStartDate = _state.selectedStartDate,`

Production build breaks on import error for formatMuiErrorMessage

Debug builds work fine. Production build breaks with:

Creating an optimized production build...
Failed to compile.

./node_modules/materialui-daterange-picker/node_modules/@material-ui/core/esm/styles/colorManipulator.js
Attempted import error: 'formatMuiErrorMessage' is not exported from '@material-ui/utils' (imported as '_formatMuiErrorMessage').

Not sure what's breaking yet, or why I see this but others have not. I've created a fork of the repo to experiment. Any tips appreciated.

formatMuiErrorMessage IS exported from 4.10.2, but is NOT exported from 4.10.1, or earlier, given my spot checks. It is NOT exported from 4.4.3, the version in the master repo.

disable time

Hello guys please , i will like to know how to disable the time option , i want the user to only be able to choose start date and ending date.
Thanks

Add support for ThemeProvider

if I'm not mistaken, MuiThemeProvider is from Material UI v3, and ThemeProvider is from Material UI v4.
In the README, there's only example for MuiThemeProvider. Could you show how to use material-ui-datetime-range-picker component with ThemeProvider and Material UI v4?

React with material-ui v1+ and material-ui-datetime-range-picker not work together.

Hi! I'musing react 16 with material-ui v1.3.
And I have to use MuiThemeProvider:

const AppRoot = () => {
  return (
    <MuiThemeProvider theme={ theme }>
      <App />
    </MuiThemeProvider>
  );
};

const StyledAppRoot = withStyles(globalStyle)(AppRoot);

const render = () => {
  ReactDOM.render(
    <Provider store={ store }>
      <ConnectedRouter history={ history }>
        <StyledAppRoot />
      </ConnectedRouter>
    </Provider>,
    MOUNT_NODE
  );
};

I tried to install and use material-ui-datetime-range-picker and have got error:

TypeError: Cannot read property 'prepareStyles' of undefined.

How can I fix it?

TypeError: Cannot read property 'prepareStyles' of undefined

Just installed the package and followed the instructions mentioned in the README. But when launched, it throws the following error:

TypeError: Cannot read property 'prepareStyles' of undefined
DateRangePicker.render
node_modules/material-ui-datetime-range-picker/DatePicker/DateRangePicker.js:483
480 | utils = _props.utils,
481 | other = _objectWithoutProperties(_props, ['DateTimeFormat', 'autoOk', 'autoOpenField', 'blockedDateTimeRanges', 'calendarDateWidth', 'calendarTimeWidth', 'cancelLabel', 'className', 'container', 'dayButtonSize', 'dialogContainerStyle', 'end', 'endLabel', 'endLabelDate', 'endLabelTime', 'firstDayOfWeek', 'formatDisplay', 'layout', 'locale', 'mode', 'okLabel', 'onDismiss', 'onFocus', 'onShow', 'onClick', 'showCalendarDate', 'showCalendarStatus', 'start', 'startLabel', 'startLabelDate', 'startLabelTime', 'style', 'textFieldStyle', 'utils']);
482 |

483 | var prepareStyles = this.context.muiTheme.prepareStyles;
| ^ 484 | var styles = this.getStyles();
485 | var _state = this.state,
486 | selectedStartDate = _state.selectedStartDate,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.