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

@ -92,7 +92,7 @@ function toggleOptionsModal() {
<div class="sci-fi-box">
<div class="info-button-container">
<SciFiButton
handler={toggleOptionsModal}
on:click={_ => modal.options = true}
height="60px"
width="60px"
>
@ -119,14 +119,14 @@ function toggleOptionsModal() {
<div class="flex-row">
<SciFiButton
title="Starts the game"
handler={tempButtonHandler}
on:click={tempButtonHandler}
>
Start Game
</SciFiButton>
<SciFiButton
title="Delete the lobby, preventing further games from being played"
background="#ff0000"
handler={tempButtonHandler}
on:click={tempButtonHandler}
>
Delete Game
</SciFiButton>