Skip to content

feat: add scoresheet view#41

Open
oodtoon wants to merge 5 commits intomainfrom
bb-score-sheet
Open

feat: add scoresheet view#41
oodtoon wants to merge 5 commits intomainfrom
bb-score-sheet

Conversation

@oodtoon
Copy link
Collaborator

@oodtoon oodtoon commented Dec 23, 2024

This is a scoresheet view that I made and I really just kinda made components a lot more complex. You're welcome.

@vercel
Copy link

vercel bot commented Dec 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pool-scorekeeper ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 24, 2024 8:50pm

Comment on lines +79 to +98
{#if option.href}
<a
class="flex w-full gap-2 py-2 px-6 bg-white text-black hover:bg-slate-300"
style:border-bottom={i < hamburgerOptions.length - 1 ? '1px solid black' : ''}
href={option.href}
on:click={handleClose}
>
<svelte:component this={option.icon} />
{option.title}
</a>
{:else}
<button
class="flex w-full gap-2 py-2 px-6 bg-white text-black hover:bg-slate-300"
style:border-bottom={i < hamburgerOptions.length - 1 ? '1px solid black' : ''}
on:click={() => option.onClick?.() ?? handleOptionClick(option.title)}
>
<svelte:component this={option.icon} />
{option.title}
</button>
{/if}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use svelte:element to reduce duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants