diff --git a/frontend/package.json b/frontend/package.json index 6cc52121e..0064d2574 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -20,7 +20,7 @@ "build:app:assets": "node ./scripts/build-app-assets.js", "build:storybook": "yarn run build:storybook:assets && yarn run build:storybook:cljs && storybook build", "build:storybook:assets": "node ./scripts/build-storybook-assets.js", - "build:storybook:cljs": "clojure -M:dev:shadow-cljs release storybook", + "build:storybook:cljs": "clojure -M:dev:shadow-cljs compile storybook", "build:renderer": "yarn run wasm-pack build ./renderer --target web --out-dir ../resources/public/js/renderer --release", "e2e:server": "node ./scripts/e2e-server.js", "fmt:clj": "cljfmt fix --parallel=true src/ test/", diff --git a/frontend/src/app/util/time.cljs b/frontend/src/app/util/time.cljs index 4a91fbdfc..85cd03319 100644 --- a/frontend/src/app/util/time.cljs +++ b/frontend/src/app/util/time.cljs @@ -6,7 +6,7 @@ (ns app.util.time (:require - ["./time_impl.js" :as impl] + ["./time_impl" :as impl] [app.common.data.macros :as dm] [app.common.time :as common-time] [app.util.object :as obj] diff --git a/frontend/src/app/util/time_impl.js b/frontend/src/app/util/time_impl.js index d6bb5f32b..6bffde623 100644 --- a/frontend/src/app/util/time_impl.js +++ b/frontend/src/app/util/time_impl.js @@ -1,5 +1,5 @@ -import fmt1 from "date-fns/format"; -import fmt2 from "date-fns/formatDistanceToNowStrict"; +import {format as dfnFormat} from "date-fns/format"; +import {formatDistanceToNowStrict as dfnFormatDistance} from "date-fns/formatDistanceToNowStrict"; import {arSA} from "date-fns/locale/ar-SA"; import {ca} from "date-fns/locale/ca"; @@ -67,5 +67,5 @@ export const locales = { "ja_jp": ja, }; -export const format = fmt1.format; -export const format_distance_to_now = fmt2.formatDistanceToNowStrict; +export const format = dfnFormat; +export const format_distance_to_now = dfnFormatDistance;