mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
778fb07464
* 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>
11 lines
312 B
TypeScript
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} />;
|
|
}
|