We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a38584 commit 0a67a10Copy full SHA for 0a67a10
packages/shared/assets/index.js
@@ -1,17 +1,6 @@
1
import * as _images from "./img/list";
2
export { imageName } from "./img/named";
3
4
-const _imageArray = Object.values(_images).reduce(
5
- (result, val) => [...result, val.default],
6
- []
7
-);
8
-
9
-export const imageArray = [
10
- ..._imageArray,
11
12
13
14
15
-]; // make it bigger
+export const imageArray = Object.values(_images);
16
export const imageAny = () =>
17
imageArray[Math.floor(Math.random() * imageArray.length)];
0 commit comments