Skip to content

Commit

Permalink
added a compare action button
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyAsh5114 committed Jul 3, 2024
1 parent a00242c commit 10ba514
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/routes/workouts/manage/exercises/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import InfoPopover from '$lib/components/InfoPopover.svelte';
import Button from '$lib/components/ui/button/button.svelte';
import AddIcon from 'virtual:icons/lucide/plus';
import CompareIcon from 'virtual:icons/lucide/scale';
import ReorderIcon from 'virtual:icons/lucide/git-compare-arrows';
import EditIcon from 'virtual:icons/lucide/pencil';
Expand All @@ -32,7 +33,7 @@
<H3>Exercises</H3>

{#if workoutData !== null}
<div class="flex gap-2 items-center">
<div class="flex items-center gap-2">
<div class="mr-auto flex flex-col">
{#if workoutData.workoutOfMesocycle !== undefined}
<span class="text-lg font-semibold">
Expand Down Expand Up @@ -62,6 +63,10 @@
<EditIcon />
{/if}
</Button>
<Button size="icon" variant="outline" aria-label="compare-exercises">
<CompareIcon />
<!-- TODO: comparison stuff -->
</Button>
<Button size="icon" variant="outline" aria-label="add-exercise">
<AddIcon />
<!-- TODO: sheet -->
Expand All @@ -73,6 +78,6 @@
TODO: skeletons
{:else}
<div class="mt-2 flex h-px grow flex-col overflow-y-auto">
<DndComponent itemList={workoutRunes.workoutExercises} {reordering} />
<DndComponent bind:itemList={workoutRunes.workoutExercises} {reordering} />
</div>
{/if}

0 comments on commit 10ba514

Please sign in to comment.