Skip to content

Commit

Permalink
fix(GoalHeader/Link): save locale by navigate
Browse files Browse the repository at this point in the history
  • Loading branch information
LamaEats committed Mar 28, 2024
1 parent 7122f33 commit cfe1e43
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/IssueTitle.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import React from 'react';
import { Text, Link } from '@taskany/bricks/harmony';
import { Text } from '@taskany/bricks/harmony';
import { nullable } from '@taskany/bricks';

import { goalPageHeaderTitle } from '../utils/domObjects';

import { NextLink } from './NextLink';

interface IssueTitleProps {
title: string;
href?: string;
Expand All @@ -16,9 +18,9 @@ export const IssueTitle = React.forwardRef<HTMLDivElement, IssueTitleProps>(({ t
{nullable(
href,
(h) => (
<Link href={h} view="primary">
<NextLink href={h} view="primary">
{title}
</Link>
</NextLink>
),
title,
)}
Expand Down

0 comments on commit cfe1e43

Please sign in to comment.