grafana/public/app/features/plugins/admin/pages/PluginDetails.tsx
Levente Balogh 778fb07464
Plugins: Make the Plugin Details page reusable (#58741)
* refactor(PluginDetails): use react-router hooks instead of props

* Wip

* refactor: remove unnecessary constant

* feat: use the original plugin details page under connections

* chore: use better wording in the not-found warning

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>

* chore: use the renderer utility everywhere in the test

* chore: don't show a title while loading a plugin

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2022-11-29 13:45:03 +01:00

11 lines
312 B
TypeScript

import React from 'react';
import { useParams } from 'react-router-dom';
import { PluginDetailsPage } from '../components/PluginDetailsPage';
export default function PluginDetails(): JSX.Element {
const { pluginId } = useParams<{ pluginId: string }>();
return <PluginDetailsPage pluginId={pluginId} />;
}