Skip to content

Commit d042188

Browse files
committed
refactor: use shared Link component in EditableText
1 parent 51e6c7e commit d042188

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/pages/job-application-tracking/_components/EditableText.svelte

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script lang="ts">
22
import Icon from '@/shared/components/Icon.svelte'
3+
import Link from '@/shared/components/Link.svelte'
34
import type { EditableTextProps } from './types'
45
56
let {
@@ -32,10 +33,8 @@
3233

3334
{#if !editable}
3435
{#if type === 'link' && value}
35-
<a
36-
target="_blank"
37-
rel="noopener noreferrer"
38-
href={value}
36+
<Link
37+
to={value}
3938
title={value}
4039
class={[
4140
'flex w-max items-center gap-x-1 py-1 text-jat-blue underline',
@@ -45,7 +44,7 @@
4544
>
4645
{label}
4746
<Icon name="jat/link" size={12} />
48-
</a>
47+
</Link>
4948
{:else if type === 'text'}
5049
<span class={['block truncate py-1 text-jat-gray-400', extraClass, { 'text-xl md:text-2xl': large }]}>
5150
{value}

0 commit comments

Comments
 (0)