Registry
Explore community-led codemods to migrate, optimize, and transform your codebase.
Ready to contribute?
Build your own codemod and share it with the community.
Explore community-led codemods to migrate, optimize, and transform your codebase.
Build your own codemod and share it with the community.
Backstage 1.50.0: Replace deprecated DialogApi .show() and .showModal() with .open()
Build your own codemod and share it with the community.
1 import type { DialogApi } from '@backstage/frontend-plugin-api';
2
3 function openDialog(api: DialogApi) {
4 api.show({ content: <MyDialog /> });
5 }
6
7 function openModalDialog(api: DialogApi) {
8 api.showModal({ content: <ConfirmDialog /> });
9 }
10