mirror of
https://github.com/bakhirev/assayo.git
synced 2024-11-16 16:21:41 +00:00
update
This commit is contained in:
parent
b35a6a9c6e
commit
654a7cdf23
|
@ -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…
Reference in a new issue