diff --git a/frontend/src/lib/components/Markdown/NewTabLinkMarkdown.svelte b/frontend/src/lib/components/Markdown/NewTabLinkMarkdown.svelte new file mode 100644 index 000000000..a8167cc33 --- /dev/null +++ b/frontend/src/lib/components/Markdown/NewTabLinkMarkdown.svelte @@ -0,0 +1,10 @@ + + + diff --git a/frontend/src/lib/components/Markdown/index.ts b/frontend/src/lib/components/Markdown/index.ts index 717ae5c56..9ece5f0ad 100644 --- a/frontend/src/lib/components/Markdown/index.ts +++ b/frontend/src/lib/components/Markdown/index.ts @@ -1 +1,2 @@ export { default as NewTabLinkRenderer } from './NewTabLinkRenderer.svelte'; +export { default as NewTabLinkMarkdown } from './NewTabLinkMarkdown.svelte'; diff --git a/frontend/src/lib/components/Projects/ProjectConfidentialityCombobox.svelte b/frontend/src/lib/components/Projects/ProjectConfidentialityCombobox.svelte index f1c3ffe5e..c76512e79 100644 --- a/frontend/src/lib/components/Projects/ProjectConfidentialityCombobox.svelte +++ b/frontend/src/lib/components/Projects/ProjectConfidentialityCombobox.svelte @@ -3,9 +3,7 @@ import Checkbox from '../../forms/Checkbox.svelte'; import { slide } from 'svelte/transition'; import { Icon } from '$lib/icons'; - import Markdown from 'svelte-exmarkdown'; - import { NewTabLinkRenderer } from '$lib/components/Markdown'; - import type {Component} from 'svelte'; + import {NewTabLinkMarkdown} from '$lib/components/Markdown'; export let value: boolean; @@ -22,6 +20,6 @@ {#if value}
- } }]} /> +
{/if} diff --git a/frontend/src/lib/components/Users/CreateUserModal.svelte b/frontend/src/lib/components/Users/CreateUserModal.svelte index 95c82c9cb..df5940bde 100644 --- a/frontend/src/lib/components/Users/CreateUserModal.svelte +++ b/frontend/src/lib/components/Users/CreateUserModal.svelte @@ -4,9 +4,7 @@ import { helpLinks } from '$lib/components/help'; import { type LexAuthUser, type RegisterResponse } from '$lib/user'; import CreateUser from '$lib/components/Users/CreateUser.svelte'; - import Markdown from 'svelte-exmarkdown'; - import { NewTabLinkRenderer } from '$lib/components/Markdown'; - import type {Component} from 'svelte'; + import {NewTabLinkMarkdown} from '$lib/components/Markdown'; import Icon from '$lib/icons/Icon.svelte'; import { createEventDispatcher } from 'svelte'; @@ -30,13 +28,11 @@

{$t('common.did_you_know')}

- } }]} /> - } }]} />
diff --git a/frontend/src/lib/forms/Checkbox.svelte b/frontend/src/lib/forms/Checkbox.svelte index 76a15f01b..507cb4f40 100644 --- a/frontend/src/lib/forms/Checkbox.svelte +++ b/frontend/src/lib/forms/Checkbox.svelte @@ -1,9 +1,7 @@