File tree Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
1212} from 'src/hooks/useLocalizeDashboardUrl' ;
1313import i18n from 'src/i18n' ;
1414import { openUrl } from 'src/common/openUrl' ;
15+ import { Link } from 'react-router-dom' ;
1516import { Pipe } from 'src/common/components/Pipe' ;
1617import { StatusPill } from 'src/common/components/pills/StatusPill' ;
1718import { DesktopPill } from './devicePills/DesktopPill' ;
@@ -100,22 +101,18 @@ export const Pills = ({ campaign }: { campaign: CampaignWithOutput }) => {
100101 </ Button >
101102 ) }
102103 { outputs ?. includes ( 'bugs' ) && (
103- < Button
104- id = "button-bugs-list-header"
105- isPrimary
106- isPill
107- themeColor = { globalTheme . palette . water [ 600 ] }
108- onClick = { ( ) =>
109- openUrl (
110- getLocalizedFunctionalDashboardUrl ( campaign . id , i18n . language ) ,
111- {
112- newTab : true ,
113- }
114- )
115- }
104+ < Link
105+ to = { getLocalizedFunctionalDashboardUrl ( campaign . id , i18n . language ) }
116106 >
117- { t ( '__CAMPAIGN_PAGE_BUTTON_DETAIL_BUG' ) }
118- </ Button >
107+ < Button
108+ id = "button-bugs-list-header"
109+ isPrimary
110+ isPill
111+ themeColor = { globalTheme . palette . water [ 600 ] }
112+ >
113+ { t ( '__CAMPAIGN_PAGE_BUTTON_DETAIL_BUG' ) }
114+ </ Button >
115+ </ Link >
119116 ) }
120117 </ ButtonWrapper >
121118 </ FooterContainer >
You can’t perform that action at this time.
0 commit comments