Make the button components use the click listen instead of the handler

This commit is contained in:
Oliver-Akins 2021-12-24 03:19:33 -07:00
parent 4bdbe8f231
commit 7b4826dfbc
3 changed files with 6 additions and 6 deletions

View file

@ -19,7 +19,7 @@ let canLeave = $myName == $hostName || name == $myName;
{#if $myName == name}
<SciFiButton
background="{colour}"
handler={changeColour}
on:click={changeColour}
height="60px"
width="60px"
hoverBackground="{colour}"
@ -51,7 +51,7 @@ let canLeave = $myName == $hostName || name == $myName;
{#if canLeave}
<SciFiButton
background="#ff0000"
handler={exitPlayer}
on:click={exitPlayer}
height="60px"
width="75px"
hoverBackground="#ff0000"

View file

@ -28,7 +28,7 @@ function closeModal() {
>
<SciFiButton
classes="close-button"
handler={closeModal}
on:click={closeModal}
height="60"
width="60"
on:click