Fix button state updates

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

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

Loading…
Cancel
Save