fix: update props and types for General Settings page

This commit is contained in:
sethburkart123
2024-09-04 13:18:48 +10:00
parent c008b32efa
commit 19102f9bcd
6 changed files with 52 additions and 93 deletions
@@ -1,8 +1,7 @@
<script lang="ts">
export let onClick: () => void;
export let text: string;
let { onClick, text, ...props } = $props<{ onClick: () => void, text: string, [key: string]: any }>();
</script>
<button on:click={onClick} class='px-4 py-1 text-[0.75rem] dark:bg-[#38373D] bg-[#DDDDDD] dark:text-white rounded-md'>
<button onclick={onClick} class='px-4 py-1 text-[0.75rem] dark:bg-[#38373D] bg-[#DDDDDD] dark:text-white rounded-md' {...props}>
{text}
</button>
@@ -10,10 +10,6 @@
onChange(!state);
};
$effect(() => {
console.log('state', state);
});
const springParams = {
stiffness: 700,
damping: 30,