mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 18:20:30 +08:00
Remove AuthenticationError component
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user