enzostvs HF staff commited on
Commit
0307ca7
·
1 Parent(s): b628664

fix error type

Browse files
src/lib/components/community/Card.svelte CHANGED
@@ -1,5 +1,4 @@
1
  <script lang="ts">
2
- import { env } from "$env/dynamic/public";
3
  import { goto } from "$app/navigation";
4
  import { page } from "$app/stores";
5
  import Icon from "@iconify/svelte";
 
1
  <script lang="ts">
 
2
  import { goto } from "$app/navigation";
3
  import { page } from "$app/stores";
4
  import Icon from "@iconify/svelte";
src/lib/components/community/viewer/Viewer.svelte CHANGED
@@ -3,7 +3,6 @@
3
  import { goto } from "$app/navigation";
4
  import { page } from "$app/stores";
5
  import { get } from "svelte/store";
6
- import { env } from "$env/dynamic/public";
7
  import Icon from "@iconify/svelte";
8
 
9
  import { galleryStore } from "$lib/stores/use-gallery";
@@ -97,9 +96,9 @@
97
  class="flex items-center justify-start gap-4 cursor-pointer w-full text-left transition-all duration-200 hover:bg-neutral-950/50 p-3 group relative rounded-lg"
98
  on:click={() => handleClickModel(gallery?.model?.id)}
99
  >
100
- <img src={gallery?.model?.image} alt={gallery?.model?.title} class="w-14 h-14 rounded-lg object-cover" />
101
  <div>
102
- <p class="text-neutral-200 text-base font-medium">{gallery?.model?.title}</p>
103
  <p class="text-neutral-400 text-sm">{gallery?.model?.id}</p>
104
  </div>
105
  <div class="rounded-full absolute top-1/2 -translate-y-1/2 text-neutral-100 w-8 h-8 right-4 bg-pink-500 flex items-center justify-center transition-all duration-200 group-hover:opacity-100 opacity-0">
 
3
  import { goto } from "$app/navigation";
4
  import { page } from "$app/stores";
5
  import { get } from "svelte/store";
 
6
  import Icon from "@iconify/svelte";
7
 
8
  import { galleryStore } from "$lib/stores/use-gallery";
 
96
  class="flex items-center justify-start gap-4 cursor-pointer w-full text-left transition-all duration-200 hover:bg-neutral-950/50 p-3 group relative rounded-lg"
97
  on:click={() => handleClickModel(gallery?.model?.id)}
98
  >
99
+ <img src={gallery?.model?.image} alt={gallery?.model?.id} class="w-14 h-14 rounded-lg object-cover" />
100
  <div>
101
+ <p class="text-neutral-200 text-base font-medium">{gallery?.model?.id}</p>
102
  <p class="text-neutral-400 text-sm">{gallery?.model?.id}</p>
103
  </div>
104
  <div class="rounded-full absolute top-1/2 -translate-y-1/2 text-neutral-100 w-8 h-8 right-4 bg-pink-500 flex items-center justify-center transition-all duration-200 group-hover:opacity-100 opacity-0">