docs: address copilot review comments

Add installation example for extraIcons in the customize-theme guide
and fix "productional code" typo in quickstart-app-plugin--old.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-30 12:57:47 +02:00
parent 15ab64be96
commit 0f8b40ddc5
2 changed files with 14 additions and 1 deletions
@@ -466,6 +466,8 @@ export default app.createRoot();
You can register additional icons so that they can be used in other places like entity links. For example, to add an `alert` icon:
```tsx title="packages/app/src/App.tsx"
import { createApp } from '@backstage/frontend-defaults';
import { createFrontendModule } from '@backstage/frontend-plugin-api';
import AlarmIcon from '@material-ui/icons/Alarm';
import { IconBundleBlueprint } from '@backstage/plugin-app-react';
@@ -477,6 +479,17 @@ const extraIcons = IconBundleBlueprint.make({
},
},
});
const app = createApp({
features: [
createFrontendModule({
pluginId: 'app',
extensions: [extraIcons],
}),
],
});
export default app.createRoot();
```
You can then reference `alert` for your icon in entity links like this:
+1 -1
View File
@@ -155,7 +155,7 @@ export const ExampleFetchComponent = () => {
3. Save that and ensure you see no errors. Comment out the unused imports if
your linter gets in the way.
###### We will add a lot to this file for the sake of ease. Please don't do this in productional code!
###### We will add a lot to this file for the sake of ease. Please don't do this in production code!
## The Graph Model