Remove AuthenticationError component

This commit is contained in:
Sebastian Martinez
2025-03-18 21:21:02 +01:00
parent c730e82187
commit 738e7f4fb4
4 changed files with 1 additions and 66 deletions
-40
View File
@@ -1,40 +0,0 @@
<script lang="ts">
import Icon from "@app/components/Icon.svelte";
interface Props {
error: string;
hint?: string;
}
const { error, hint }: Props = $props();
</script>
<style>
main {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
row-gap: 0.5rem;
}
/* This tag comes from the backend. */
:global(code) {
font-family: var(--font-family-monospace);
font-size: var(--font-size-small);
background-color: var(--color-fill-ghost);
padding: 0.125rem 0.25rem;
}
</style>
<main>
<Icon name="warning" size="32" />
<div class="txt-medium txt-semibold">
{error}
</div>
{#if hint}
<div class="txt-small">{@html hint}</div>
{/if}
</main>