refactor: Reduce repetition by adding icon arguments to Button

This commit is contained in:
Ushie
2024-12-22 03:19:02 +03:00
parent 2f24780f34
commit 24650c71a9
4 changed files with 15 additions and 13 deletions

View File

@@ -25,7 +25,7 @@
<a href={url} rel="noreferrer" target="_blank" on:click|stopPropagation>
<h4>{name}</h4>
</a>
<div id="arrow" style:transform={expanded ? 'rotate(0deg)' : 'rotate(-180deg)'}>
<div id="arrow" style:transform={expanded ? 'rotate(0deg)' : 'rotate(180deg)'}>
<ChevronUp size="24px" color="var(--surface-six)" />
</div>
</div>