Skip to content

Commit 0a67a10

Browse files
fix(shared): fix export of imageArray
1 parent 3a38584 commit 0a67a10

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

packages/shared/assets/index.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
import * as _images from "./img/list";
22
export { imageName } from "./img/named";
33

4-
const _imageArray = Object.values(_images).reduce(
5-
(result, val) => [...result, val.default],
6-
[]
7-
);
8-
9-
export const imageArray = [
10-
..._imageArray,
11-
..._imageArray,
12-
..._imageArray,
13-
..._imageArray,
14-
..._imageArray,
15-
]; // make it bigger
4+
export const imageArray = Object.values(_images);
165
export const imageAny = () =>
176
imageArray[Math.floor(Math.random() * imageArray.length)];

0 commit comments

Comments
 (0)