diff --git a/frontend/src/component/common/StrategyItemContainer/StrategyItemContainer.tsx b/frontend/src/component/common/StrategyItemContainer/StrategyItemContainer.tsx index 8e330f44b4..2cfcad6ee5 100644 --- a/frontend/src/component/common/StrategyItemContainer/StrategyItemContainer.tsx +++ b/frontend/src/component/common/StrategyItemContainer/StrategyItemContainer.tsx @@ -11,6 +11,7 @@ import { ConditionallyRender } from 'component/common/ConditionallyRender/Condit import { PlaygroundStrategySchema } from 'openapi'; import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig'; import { Badge } from '../Badge/Badge'; +import { Link } from 'react-router-dom'; interface IStrategyItemContainerProps { strategy: IFeatureStrategy | PlaygroundStrategySchema; @@ -106,6 +107,11 @@ export const StrategyItemContainer: FC = ({ const Icon = getFeatureStrategyIcon(strategy.name); const { uiConfig } = useUiConfig(); + const StrategyHeaderLink: React.FC = + 'links' in strategy + ? ({ children }) => {children} + : ({ children }) => <> {children} ; + return ( = ({ }} /> - - - {formatStrategyName(String(strategy.title))} - - } - /> + + + + {formatStrategyName( + String(strategy.title) + )} + + } + /> +