diff --git a/dev.cljs.edn b/dev.cljs.edn index 1b8dcae7..987101e6 100644 --- a/dev.cljs.edn +++ b/dev.cljs.edn @@ -3,14 +3,14 @@ :output-to "resources/public/js/compiled/app.js" :output-dir "resources/public/js/compiled/" :source-map "resources/public/js/compiled/app.js.map" - :pretty-print true - :pseudo-names true + #_#_:pretty-print true + #_#_:pseudo-names true :infer-externs true :closure-defines {cljs.core/*global* "window"} :bundle-cmd {:none ["npx" "webpack" "--mode=production" :output-to "--output-path" :final-output-dir "--output-filename" :final-output-filename] - :default ["npx" "webpack" "--mode=development" :output-to + :default ["npx" "webpack" "--mode=production" :output-to "--output-path" :final-output-dir "--output-filename" :final-output-filename]}} diff --git a/src/cljs/auto_ap/views/components/grid.cljs b/src/cljs/auto_ap/views/components/grid.cljs index 89f25bd9..15b34c95 100644 --- a/src/cljs/auto_ap/views/components/grid.cljs +++ b/src/cljs/auto_ap/views/components/grid.cljs @@ -9,12 +9,11 @@ [auto-ap.subs :as subs])) (set! *warn-on-infer* true) -(defonce grid-context (^js/React react/createContext "default")) -(println "creat context is" react/createContext) -(def ^js/React.Provider Provider (.-Provider ^js/React.Context grid-context)) -(println "Provider is" ^js/ReactContext Provider) -(def ^js/React.Consumer Consumer (.-Consumer ^js/React.Context grid-context)) -(println "Consumer is" ^js/ReactContext Consumer) +(defonce ^js/React.Context grid-context ( react/createContext "default")) +(def ^js/React.Provider Provider (. grid-context -Provider)) +#_(println "Provider is" Provider) +(def ^js/React.Consumer Consumer (. grid-context -Consumer)) +#_(println "Consumer is" Consumer) (defn toggle-sort-by [params sort-key sort-name] (let [[found? sort] (reduce diff --git a/src/cljs/auto_ap/views/pages/payments/table.cljs b/src/cljs/auto_ap/views/pages/payments/table.cljs index d24befe0..615400ec 100644 --- a/src/cljs/auto_ap/views/pages/payments/table.cljs +++ b/src/cljs/auto_ap/views/pages/payments/table.cljs @@ -52,7 +52,7 @@ (= :cash type) "Cash" (= :debit type) "Debit" :else (if s3-url - [:a {:href s3-url :target "_new"} [:a.button [:span.icon [:i.fa.fa-share-square-o]] + [:a.button {:href s3-url :target "_new"} [:span [:span.icon [:i.fa.fa-share-square-o]] [:span (str " " check-number )]]] check-number))] [grid/cell {} (date->str date) ] @@ -70,6 +70,7 @@ [:div {:style {:max-width "250px" :text-overflow "ellipsis" :white-space "nowrap" + :overflow "hidden"}} (for [invoice invoices] ^{:key (:invoice-number (:invoice invoice))}