mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-15 15:48:30 +00:00
fix: shuffle by default
This commit is contained in:
parent
9a235a7c15
commit
88fbd78492
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user