aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/utils.js')
-rw-r--r--frontend/src/utils.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontend/src/utils.js b/frontend/src/utils.js
index 4991755..c81cdfc 100644
--- a/frontend/src/utils.js
+++ b/frontend/src/utils.js
@@ -82,3 +82,7 @@ export function formatSize(size) {
return `${(size / 1000000).toFixed(1)}M`;
}
}
+
+export function randomClassName(size = 10) {
+ return Math.random().toString(36).substring(size);
+}