From 5f3c50f86d63dcba53cf32f7f5124c3c3cd67bb9 Mon Sep 17 00:00:00 2001 From: Chukwuma Nwaugha Date: Wed, 27 Nov 2024 14:41:43 +0000 Subject: [PATCH] wip: use a sidebar_item_action --- app/src/lib/components/SidebarItem.svelte | 10 ++-- .../lib/components/SidebarItemActions.svelte | 51 +++++++++++++++++++ 2 files changed, 56 insertions(+), 5 deletions(-) create mode 100644 app/src/lib/components/SidebarItemActions.svelte diff --git a/app/src/lib/components/SidebarItem.svelte b/app/src/lib/components/SidebarItem.svelte index aef35b3..10ce671 100644 --- a/app/src/lib/components/SidebarItem.svelte +++ b/app/src/lib/components/SidebarItem.svelte @@ -15,13 +15,11 @@ import { page } from '$app/stores'; import { Button } from './ui/button'; import { cn } from '@/utils/ui.utils'; + import SidebarItemActions from './SidebarItemActions.svelte'; export let item: SidebarItemModel; - const [send, receive] = crossfade({ - duration: 250, - easing: cubicInOut - }); + const [send, receive] = crossfade({ duration: 250, easing: cubicInOut }); $: href = item.completed ? `/audiocast/${item.sessionId}` @@ -52,7 +50,9 @@ {item.title} -