Refactoring: remove some obsoleted calls to "Clone()"

This commit is contained in:
Pieter Vander Vennet 2024-11-05 00:16:20 +01:00
parent 594709ea95
commit 8690ad35bb
3 changed files with 6 additions and 6 deletions

View file

@ -6,6 +6,7 @@
import ToSvelte from "../Base/ToSvelte.svelte"
import * as native from "../../assets/language_native.json"
import { TypedTranslation } from "../i18n/Translation"
import Tr from "../Base/Tr.svelte"
const availableTranslationTyped: TypedTranslation<{ native: string }> =
Translations.t.communityIndex.available
@ -46,7 +47,7 @@
{resource.resolved?.description}
{#if resource.languageCodes?.indexOf($language) >= 0}
<div class="thanks w-fit">
<ToSvelte construct={() => availableTranslation.Clone()} />
<Tr t={availableTranslation}/>
</div>
{/if}
</div>

View file

@ -108,7 +108,7 @@
</div>
</div>
{:else if step === "has_been_split"}
<Tr cls="thanks" t={t.hasBeenSplit.Clone().SetClass("font-bold thanks block w-full")} />
<Tr cls="thanks " t={t.hasBeenSplit} />
<button on:click={() => downloadWay()}>
<Scissors class="h-6 w-6" />
<Tr t={t.splitAgain} />