mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
53354224fc
Upgrades biome to 1.6.1, and updates husky pre-commit hook. Most changes here are making type imports explicit.
22 lines
624 B
TypeScript
22 lines
624 B
TypeScript
import type { VFC } from 'react';
|
|
import { useParams } from 'react-router-dom';
|
|
import NotFound from 'component/common/NotFound/NotFound';
|
|
import { JiraIntegration } from './JiraIntegration/JiraIntegration';
|
|
import { EdgeIntegration } from './EdgeIntegration/EdgeIntegration';
|
|
|
|
type IViewIntegrationProps = {};
|
|
|
|
export const ViewIntegration: VFC<IViewIntegrationProps> = () => {
|
|
const { providerId } = useParams<{ providerId: string }>();
|
|
|
|
if (providerId === 'jira') {
|
|
return <JiraIntegration />;
|
|
}
|
|
|
|
if (providerId === 'edge') {
|
|
return <EdgeIntegration />;
|
|
}
|
|
|
|
return <NotFound />;
|
|
};
|