1
0
mirror of https://github.com/immich-app/immich.git synced 2025-01-12 15:32:36 +02:00

fix(web): unused variables

This commit is contained in:
Alex Tran 2023-03-23 21:13:28 -05:00
parent 4bf50a0b46
commit 586590e9ec
No known key found for this signature in database
GPG Key ID: E4954BC787B85C8A
2 changed files with 12 additions and 11 deletions

View File

@ -30,7 +30,7 @@
}
const params = new URLSearchParams({
q: value,
q: searchValue,
clip: clipSearch
});
@ -104,14 +104,17 @@
>
</p>
</div>
<div class="px-5 pt-5 text-xs flex justify-between">
<p>RECENT SEARCHES</p>
<button
type="button"
class="text-immich-primary dark:text-immich-dark-primary font-semibold p-2 hover:bg-immich-primary/25 rounded-lg"
on:click={clearSearchTerm}>Clear all</button
>
</div>
{#if $savedSearchTerms.length > 0}
<div class="px-5 pt-5 text-xs flex justify-between">
<p>RECENT SEARCHES</p>
<button
type="button"
class="text-immich-primary dark:text-immich-dark-primary font-semibold p-2 hover:bg-immich-primary/25 rounded-lg"
on:click={clearSearchTerm}>Clear all</button
>
</div>
{/if}
{#each $savedSearchTerms as savedSearchTerm, i (i)}
<button

View File

@ -1,5 +1,3 @@
import { writable } from 'svelte/store';
import { persisted } from 'svelte-local-storage-store';
export const enableClip = writable<boolean>(false);
export const savedSearchTerms = persisted<string[]>('search-terms', [], {});