Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMHH committed Oct 28, 2023
1 parent f0d458b commit 9f2133a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/components/settings/Settings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import { createEventDispatcher, getContext, onMount } from "svelte";
import { mode, settings } from "../../stores";
import { modeData, GameState } from "../../utils";
// import { modeData, GameState } from "../../utils";
import type { Toaster } from "../widgets";
import Setting from "./Setting.svelte";
export let state: GameState;
// export let state: GameState;
const toaster = getContext<Toaster>("toaster");
const dispatch = createEventDispatcher();
Expand All @@ -32,13 +32,7 @@
<div class="settings-top">
<h3>settings</h3>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
on:click={() => {
if (!state.validHard) {
toaster.pop("Game has already violated hard mode");
}
}}
>
<div>
<!-- <Setting type="switch" bind:value={$settings.hard[$mode]} disabled={!state.validHard}>
<svelte:fragment slot="title">Hard Mode</svelte:fragment>
<svelte:fragment slot="desc">
Expand Down

0 comments on commit 9f2133a

Please sign in to comment.