mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-09-22 00:44:52 +02:00
Fix lint
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
<script lang="ts">
|
||||
import type { MouseEventHandler } from "svelte/elements";
|
||||
import DoneIcon from "@lucide/svelte/icons/check";
|
||||
import { Button, type ButtonVariant } from "../button";
|
||||
import { Headline, Text } from "../typography";
|
||||
import DoneIcon from "@lucide/svelte/icons/check";
|
||||
|
||||
type Step = {
|
||||
title: string;
|
||||
|
||||
@@ -80,13 +80,13 @@
|
||||
const segments = processTranslation(translation, interpolations);
|
||||
</script>
|
||||
|
||||
{#each segments as segment}
|
||||
{#each segments as segment, index (`segment-${index}`)}
|
||||
{#if segment.type === "text"}
|
||||
{segment.content}
|
||||
{:else if segment.snippet}
|
||||
{@render segment.snippet(segment.value, segment.param)}
|
||||
{:else if defaultSnippet && segment.value}
|
||||
{@render defaultSnippet(segment.value, segment.param)}
|
||||
{@render defaultSnippet(segment.value)}
|
||||
{:else if children && segment.value}
|
||||
{@render children(segment.value, segment.param)}
|
||||
{:else}
|
||||
@@ -94,6 +94,6 @@
|
||||
{/if}
|
||||
{/each}
|
||||
|
||||
{#snippet defaultSnippet(value: string | number, param: string)}
|
||||
{#snippet defaultSnippet(value: string | number)}
|
||||
<em>{value}</em>
|
||||
{/snippet}
|
||||
|
||||
Reference in New Issue
Block a user