1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-24 04:46:50 +02:00

refactor(web): use derived instead of get(t) (#10884)

This commit is contained in:
Michel Heusschen
2024-07-05 15:06:35 +02:00
committed by GitHub
parent 6791af8c2c
commit 3cd187dced
6 changed files with 16 additions and 18 deletions

View File

@ -169,7 +169,7 @@
<ControlAppBar on:close={() => goto(AppRoute.PHOTOS)} forceDark>
<svelte:fragment slot="leading">
<p class="text-lg">
{memoryLaneTitle(currentMemory.yearsAgo)}
{$memoryLaneTitle(currentMemory.yearsAgo)}
</p>
</svelte:fragment>
@ -261,7 +261,7 @@
{#if previousMemory}
<div class="absolute bottom-4 right-4 text-left text-white">
<p class="text-xs font-semibold text-gray-200">{$t('previous').toUpperCase()}</p>
<p class="text-xl">{memoryLaneTitle(previousMemory.yearsAgo)}</p>
<p class="text-xl">{$memoryLaneTitle(previousMemory.yearsAgo)}</p>
</div>
{/if}
</button>
@ -344,7 +344,7 @@
{#if nextMemory}
<div class="absolute bottom-4 left-4 text-left text-white">
<p class="text-xs font-semibold text-gray-200">{$t('up_next').toUpperCase()}</p>
<p class="text-xl">{memoryLaneTitle(nextMemory.yearsAgo)}</p>
<p class="text-xl">{$memoryLaneTitle(nextMemory.yearsAgo)}</p>
</div>
{/if}
</button>