i am using import { makeStyles } from '@mui/styles'
This is my theme typography config
enter image description here
This is file, i want to combine these 3 attributes into 1 line of code.enter image description here
Sorry that my English is not good, so it may cause misunderstandings for everyone. Looking forward to support
i want to combine these 3 attributes into 1 line of code
this is what you are passing to
MuiDataGrid-main
and this is your
text12Mediul16
object :and since :
then
a = text12Mediul16
so you can replace it like this :and if your object contains other properties apart from
fontSize
,fontWeight
andlineHeight
that are not shown in your code example, then you can't do better than you did