Material UI v4: use the new theme.spacing API
ProprietaryRewrites 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-apimod run . --recipe= org. openrewrite. react. mui. v4. theme-spacing-apiInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.