Fix button state updates

main
trivernis 5 months ago
parent 62a3727a8d
commit cf24467720
Signed by: Trivernis
GPG Key ID: 7E6D18B61C8D2F4B

@ -2,7 +2,8 @@
import { shuffle } from "$lib";
import Button8831 from "../atoms/Button8831.svelte";
const buttons: {
const buttons = $derived.by(() => {
const allButtons: {
src: string;
alt: string;
href?: string;
@ -48,11 +49,12 @@
{
src: "https://file.garden/ZZSxuqU5uT7zKhQh/webrsc/buttonz50.gif",
alt: "sevs funhouse",
href: "https://zoneoffun.neocities.org/"
}
href: "https://zoneoffun.neocities.org/",
},
];
shuffle(buttons);
shuffle(allButtons);
return allButtons;
});
</script>
<div class="buttons">

Loading…
Cancel
Save