-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworked success/error after a form calls transact
- Loading branch information
Showing
14 changed files
with
349 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<script lang="ts"> | ||
import CircleX from 'lucide-svelte/icons/circle-x'; | ||
import * as m from '$lib/paraglide/messages'; | ||
interface Props { | ||
error?: string; | ||
hidden?: boolean; | ||
} | ||
const { error, hidden }: Props = $props(); | ||
</script> | ||
|
||
<div class="space-y-6 rounded-lg" class:hidden> | ||
<div class="flex flex-col items-center gap-6"> | ||
<picture class="size-24"> | ||
<CircleX class="size-full text-red-300" /> | ||
</picture> | ||
<h2 class="h3">{m.common_transaction_error()}</h2> | ||
</div> | ||
<p class="py-4"> | ||
{error} | ||
</p> | ||
</div> |
2 changes: 1 addition & 1 deletion
2
src/lib/components/transactionSummary.svelte → src/lib/components/transact/summary.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.