Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): update extension for jsx code snippets file #25342

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/frontend-system/architecture/07-routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export const detailsSubRouteRef = createSubRouteRef({

Using subroutes in a page extension is as simple as this:

```tsx title="plugins/catalog/src/components/IndexPage.ts"
```tsx title="plugins/catalog/src/components/IndexPage.tsx"
import React from 'react';
import { Routes, Route, useLocation } from 'react-router-dom';
import { useRouteRef } from '@backstage/frontend-plugin-api';
Expand Down Expand Up @@ -402,7 +402,7 @@ export const IndexPage = () => {

This is how you can get the parameters of a sub route URL:

```tsx title="plugins/catalog/src/components/DetailsPage.ts"
```tsx title="plugins/catalog/src/components/DetailsPage.tsx"
import React from 'react';
import { useParams } from 'react-router-dom';

Expand All @@ -426,7 +426,7 @@ export const DetailsPage = () => {

Finally, see how a plugin can provide subroutes:

```tsx title="plugins/catalog/src/plugin.ts"
```tsx title="plugins/catalog/src/plugin.tsx"
import React from 'react';
import {
createPlugin,
Expand Down
Loading