Skip to content

Commit 4264b22

Browse files
jeremy-davis-sonarsourcesonartech
authored andcommitted
SC-36175 Allow pages to define where the BranchSelector navigates to (#3795)
GitOrigin-RevId: 8a86c45fb63a680114d99baec6be7bff469dcad9
1 parent 60c5fa6 commit 4264b22

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs/sq-server-commons/src/sq-server-adapters/components/layout/SCAPageTemplate.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@
2121
import { BreadcrumbsProps, Layout, PageGridProps } from '@sonarsource/echoes-react';
2222
import { forwardRef, PropsWithChildren, ReactNode } from 'react';
2323
import { Helmet } from 'react-helmet-async';
24+
import { To } from 'react-router-dom';
2425
import { GlobalFooter } from './GlobalFooter';
2526

2627
interface Props extends PropsWithChildren {
2728
asideLeft?: ReactNode;
2829
// eslint-disable-next-line react/no-unused-prop-types
2930
breadcrumbs?: BreadcrumbsProps['items'];
3031
header?: ReactNode;
32+
// eslint-disable-next-line react/no-unused-prop-types
33+
overrideBranchSelectorPath?: To;
3134
pageClassName?: string;
3235
title: string;
3336
width?: PageGridProps['width'];

0 commit comments

Comments
 (0)