preload banners regardless of number

This commit is contained in:
plebbitor
2023-03-22 16:23:32 +01:00
parent 3ffc5f2e59
commit dea5ba3069
2 changed files with 10 additions and 8 deletions
+1 -2
View File
@@ -32,8 +32,7 @@ const ImageBanner = () => {
);
};
// Helper function to import all images from a directory
function importAll(r) {
export function importAll(r) {
return r.keys().map(r);
}