Merge branch 'master' into 13853-collection-view-info-card
[arvados.git] / src / common / formatters.ts
index 823536f95b9f18332d315501bb11e73b246d6c11..38ef0223e957f1b134d1dfed10c23341af145fbc 100644 (file)
@@ -2,13 +2,13 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-export const FORMAT_DATE = (isoDate: string) => {
+export const formatDate = (isoDate: string) => {
     const date = new Date(isoDate);
     const text = date.toLocaleString();
     return text === 'Invalid Date' ? "" : text;
 };
 
-export const FORMAT_FILE_SIZE = (size?: number) => {
+export const formatFileSize = (size?: number) => {
     if (typeof size === "number") {
         for (const { base, unit } of FILE_SIZES) {
             if (size >= base) {