Material UI v4: use the new theme.spacing API

Proprietary

Rewrites theme.spacing(n) call sites that multiplied or divided its result to the v4 API, which takes the factor as an argument. Ported from the MUI codemod v4.0.0/theme-spacing-api.

org.openrewrite.react.mui.v4.theme-spacing-api
mod run . --recipe=org.openrewrite.react.mui.v4.theme-spacing-api

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.