forked from MapComplete/MapComplete
Chore: formatting
This commit is contained in:
parent
6c3c67af56
commit
286578bfc7
58 changed files with 2199 additions and 1915 deletions
|
|
@ -1,29 +1,29 @@
|
|||
<script lang="ts">
|
||||
import type { ConversionMessage } from "../../Models/ThemeConfig/Conversion/Conversion";
|
||||
import { ExclamationIcon, InformationCircleIcon } from "@rgossiaux/svelte-heroicons/solid";
|
||||
import type { ConversionMessage } from "../../Models/ThemeConfig/Conversion/Conversion"
|
||||
import { ExclamationIcon, InformationCircleIcon } from "@rgossiaux/svelte-heroicons/solid"
|
||||
|
||||
/**
|
||||
* Single conversion message, styled depending on the type
|
||||
*/
|
||||
export let message: ConversionMessage;
|
||||
export let message: ConversionMessage
|
||||
</script>
|
||||
|
||||
{#if message.level === "error"}
|
||||
<div class="alert flex justify-between items-center">
|
||||
<ExclamationIcon class="w-6 h-6 mx-1 shrink-0" />
|
||||
<div class="alert flex items-center justify-between">
|
||||
<ExclamationIcon class="mx-1 h-6 w-6 shrink-0" />
|
||||
{message.message}
|
||||
<div/>
|
||||
<div />
|
||||
</div>
|
||||
{:else if message.level === "warning"}
|
||||
<div class="warning flex justify-between items-center">
|
||||
<ExclamationIcon class="w-6 h-6 mx-1 shrink-0" />
|
||||
<div class="warning flex items-center justify-between">
|
||||
<ExclamationIcon class="mx-1 h-6 w-6 shrink-0" />
|
||||
{message.message}
|
||||
<div/>
|
||||
<div />
|
||||
</div>
|
||||
{:else if message.level === "information"}
|
||||
<div class="information flex justify-between items-center">
|
||||
<InformationCircleIcon class="w-6 h-6 mx-1 shrink-0" />
|
||||
<div class="information flex items-center justify-between">
|
||||
<InformationCircleIcon class="mx-1 h-6 w-6 shrink-0" />
|
||||
{message.message}
|
||||
<div/>
|
||||
<div />
|
||||
</div>
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue