I
I
Ivan Pavlenko2018-10-08 20:11:22
material design
Ivan Pavlenko, 2018-10-08 20:11:22

Swears at ListSubheader, what should I do?

The following error is thrown in the console

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

The proposed link does not open, Google does not give anything sane =(
This happens because of this code:
<List subheader={<ListSubheader>Управление</ListSubheader>}>

I understand that something is outdated, but due to the fact that the link does not open, I don’t understand what exactly and how to live now. It is necessary in the draver which is used as a sidebar to somehow designate the sections so that the error does not spam to the console.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question