mirror of
https://codeberg.org/uzu/strudel
synced 2026-08-01 05:27:18 -04:00
fix: shuffle by default
This commit is contained in:
@@ -10,9 +10,10 @@ export function shuffleArray(array) {
|
||||
}
|
||||
return array;
|
||||
}
|
||||
let _shuffled;
|
||||
|
||||
export function Showcase() {
|
||||
const [videos, setVideos] = useState(_videos);
|
||||
const [videos, setVideos] = useState(_shuffled);
|
||||
return (
|
||||
<>
|
||||
<div className="flex space-x-2">
|
||||
@@ -34,7 +35,7 @@ export function Showcase() {
|
||||
);
|
||||
}
|
||||
|
||||
const _videos = [
|
||||
let _videos = [
|
||||
// solstice 2023
|
||||
{ title: 'Jade Rose @ solstice stream 2023', id: 'wg0vW5Ac7L0' },
|
||||
{
|
||||
@@ -119,3 +120,5 @@ const _videos = [
|
||||
},
|
||||
{ title: 'froos @ Algorave 10th Birthday stream', id: 'IcMSocdKwvw' },
|
||||
];
|
||||
|
||||
_shuffled = shuffleArray(_videos);
|
||||
|
||||
Reference in New Issue
Block a user