Material-ui-pickers: Migration to MUI typography v2

Created on 24 Oct 2018  路  8Comments  路  Source: mui-org/material-ui-pickers

Environment

| Tech | Version |
|---------------------|---------|
| material-ui-pickers |1.0.0-rc.17 |
| material-ui |3.2.0 |

Migrate to new typography variant according to https://material-ui.com/style/typography/#migration-to-typography-v2. Support for the currently used ones will end with the next major release v4.0.0 (planned for Q1 2019).

Currently, when using material-ui-pickers there are many errors being logged as it is using deprecated typography variants:

index.js:2178 Warning: Material-UI: You are using the deprecated typography variant display1 that will be removed in the next major release. 
Please read the migration guide under https://material-ui.com/style/typography#migration-to-typography-v2
__stack_frame_overlay_proxy_console__ @ index.js:2178
3index.js:2178 Warning: Material-UI: You are using the deprecated typography variant display2 that will be removed in the next major release. 
Please read the migration guide under https://material-ui.com/style/typography#migration-to-typography-v2
__stack_frame_overlay_proxy_console__ @ index.js:2178
index.js:2178 Warning: Material-UI: You are using the deprecated typography variant subheading that will be removed in the next major release. 
Please read the migration guide under https://material-ui.com/style/typography#migration-to-typography-v2

Most helpful comment

same as miguel719 and my ui look like
image

All 8 comments

It鈥檚 already done. Just not deployed.

Was this already released ?

Yep

Because I have still warnings popping up after migrating to new Typography variants, so was curious if this could come from material-ui-pickers.

I have the same waning in fresh installed material-ui-pickers. via npm v1.0.1

index.js:1452 Warning: Failed prop type: Invalid prop variant of value subtitle1 supplied to Typography, expected one of ["display4","display3","display2","display1","headline","title","subheading","body2","body1","caption","button","srOnly","inherit"]

same as miguel719 and my ui look like
image

You must update to new material-ui-typography https://material-ui.com/style/typography/#migration-to-typography-v2 @grachet @miguel719

@dmtrKovalenko Could we add this to the docs.
I would be willing to give it a stab

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Harasz picture Harasz  路  3Comments

harvitronix picture harvitronix  路  3Comments

brett-patterson picture brett-patterson  路  3Comments

filipenevola picture filipenevola  路  4Comments

Lysander picture Lysander  路  3Comments