Skip to content

Commit

Permalink
style: event handlers change to arrow func
Browse files Browse the repository at this point in the history
  • Loading branch information
PleahMaCaka committed Oct 26, 2023
1 parent 0adb947 commit 8b6b7e6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/lib/components/sidebar/Settings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
$: isDark = JSON.parse(localStorage.getItem("isDark") || "false")
$: isSettingsShow = (<boolean>$stateStore.showSettings)
function applyDark() {
const applyDark = () => {
DarkMode(isDark)
localStorage.setItem("isDark", String(isDark))
}
function hideSettings() {
const hideSettings = () => {
$stateStore.showSettings = false
}
</script>
Expand All @@ -36,8 +36,9 @@
</li>
<li>
<h1>Model API</h1>
<input id="url-input"
bind:value={$stateStore.url.model}
<input
id="url-input"
bind:value={$stateStore.url.model}
/>
</li>
<button class="settings-close" on:click={hideSettings}>Save and Close</button>
Expand Down

0 comments on commit 8b6b7e6

Please sign in to comment.