summaryrefslogtreecommitdiff
path: root/src/views/Gallery.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-09-16 16:29:20 +0200
committerJules Laplace <julescarbon@gmail.com>2021-09-16 16:29:20 +0200
commit9a8b38c18a1853cdb63c7245fa8cc19735d2b569 (patch)
tree6aad50a17e4ce55c5dab94bb4fab1475ca30648c /src/views/Gallery.js
parent0885b9db9e264a666cd0fa656442569a953fb7f7 (diff)
refactor utils
Diffstat (limited to 'src/views/Gallery.js')
-rw-r--r--src/views/Gallery.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/views/Gallery.js b/src/views/Gallery.js
index c2bd62d..ec1b234 100644
--- a/src/views/Gallery.js
+++ b/src/views/Gallery.js
@@ -3,6 +3,7 @@
*/
import React, { useState, useEffect } from "react";
+import { mod } from "../utils/index.js";
export default function Gallery({ images, visible }) {
const hasItems = !!images?.length;
@@ -71,5 +72,3 @@ export default function Gallery({ images, visible }) {
</div>
);
}
-
-const mod = (n, m) => n - m * Math.floor(n / m);