feat(NewCharButton): Update NewCharButton

* Refactor NewCharButton
  * Remove BarIcon at NewCharButton
  * Replaced BaseRoundedButton and SVG
This commit is contained in:
phyyou
2023-05-13 02:50:37 +09:00
parent 8e6ac84c3b
commit ff93c72dcc
2 changed files with 43 additions and 12 deletions

View File

@@ -0,0 +1,16 @@
<script lang="ts">
export let isDisabled: boolean = false;
export let onClick: () => void;
</script>
<button
disabled={isDisabled}
on:click={onClick}
class="flex h-[56px] w-[56px] cursor-pointer select-none items-center justify-center
transition-colors rounded-full
border border-gray-500 text-gray-300
hover:border-gray-300
{isDisabled ? '!cursor-not-allowed' : ''}"
>
<slot />
</button>