mirror of
https://github.com/bakhirev/assayo.git
synced 2025-09-01 10:09:39 +00:00
update
This commit is contained in:
parent
b35a6a9c6e
commit
654a7cdf23
1 changed files with 4 additions and 1 deletions
|
@ -13,11 +13,14 @@ function PRLink({ prId, text, className }: IPRLinkProps) {
|
||||||
if (!prId) return null;
|
if (!prId) return null;
|
||||||
|
|
||||||
const prefix = userSettings?.settings?.linksPrefix?.task || '/';
|
const prefix = userSettings?.settings?.linksPrefix?.task || '/';
|
||||||
|
const formattedTask = prId?.[0] === '#'
|
||||||
|
? prId.replace('#', '')
|
||||||
|
: prId;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ExternalLink
|
<ExternalLink
|
||||||
text={text || 'PR'}
|
text={text || 'PR'}
|
||||||
link={`${prefix}${prId}`}
|
link={`${prefix}${formattedTask}`}
|
||||||
className={className}
|
className={className}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue