Skip to content

Commit daff207

Browse files
committed
fix: Link also in functional dashboard
1 parent e66c4a9 commit daff207

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

src/pages/Campaign/pageHeader/Pills/index.tsx

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
} from 'src/hooks/useLocalizeDashboardUrl';
1313
import i18n from 'src/i18n';
1414
import { openUrl } from 'src/common/openUrl';
15+
import { Link } from 'react-router-dom';
1516
import { Pipe } from 'src/common/components/Pipe';
1617
import { StatusPill } from 'src/common/components/pills/StatusPill';
1718
import { 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>

0 commit comments

Comments
 (0)