Shared: Codemod `<Icon />` usage to `@mdi/js`
Created by: umpox
Migration automated through codemod: https://github.com/sourcegraph/codemod/pull/140
Description
Migrates simple <Icon />
usage from mdi-react
to @mdi/react
.
Why?
We've had numerous problems with mdi-react
previously, and this library is better supported and gives us better control over our icons. See https://github.com/sourcegraph/sourcegraph/pull/37387 for more context.
Test plan
Icon edge cases tested through https://github.com/sourcegraph/sourcegraph/pull/37387, this diff is tested through automated tests.
App preview:
Check out the client app preview documentation to learn more.