These are chat archives for chandu0101/scalajs-react-components

26th
Jun 2018
Hamza Rhaiem
@hamzarhaiem
Jun 26 2018 13:25

I am trying to localised rhe MuiDatePicker (fr) like this exemple https://v0.material-ui.com/#/components/date-picker

    val frDt = "global.Intl.DateTimeFormat".asInstanceOf[js.Function]

      MuiDatePicker(
        DateTimeFormat = frDt,
        locale = "fr",
        mode = PortraitLandscape.landscape
      )()

And i am having this error..

material_ui-bundle.js:4 Uncaught TypeError: e is not a constructor
    at h (material_ui-bundle.js:4)
    at material_ui-bundle.js:18
    at Array.map (<anonymous>)
    at t.value (material_ui-bundle.js:18)
    at index-bundle.js:30
    at s (index-bundle.js:29)
    at g._renderValidatedComponentWithoutOwnerOrContext (index-bundle.js:30)
    at g._renderValidatedComponent (index-bundle.js:30)
    at g.performInitialMount (index-bundle.js:30)
    at g.mountComponent (index-bundle.js:29)

Any help please?? :(

Bijan Chokoufe Nejad
@bijancn
Jun 26 2018 13:28
sorry, really no idea @hamzarhaiem. Maybe you can open a PR/issue with a minimal test case and we can try to fix it?
Hamza Rhaiem
@hamzarhaiem
Jun 26 2018 15:04
@bijancn I am able to find Intl.scala but i can't pass Intl.DateTimeFormat like the JS exemple!