From 62b63162420ba85e6868ada0be56e41189c4ad41 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Sun, 24 Feb 2019 07:09:30 -0800 Subject: [PATCH] moved everything to date-picker. --- .../auto_ap/views/pages/unpaid_invoices.cljs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/cljs/auto_ap/views/pages/unpaid_invoices.cljs b/src/cljs/auto_ap/views/pages/unpaid_invoices.cljs index b1d5f0ef..311f2d2b 100644 --- a/src/cljs/auto_ap/views/pages/unpaid_invoices.cljs +++ b/src/cljs/auto_ap/views/pages/unpaid_invoices.cljs @@ -605,11 +605,19 @@ [horizontal-field [:label.label "Date"] [bind-field - [:input.input {:type "date" - :field [:date] - :event change-event - :spec ::invoice/date - :subscription handwrite-checks}]]] + [date-picker {:class-name "input" + :class "input" + :format-week-number (fn [] "") + :previous-month-button-label "" + :placeholder "mm/dd/yyyy" + :next-month-button-label "" + :next-month-label "" + :type "date" + :field [:date] + :event change-event + :spec ::invoice/date + :popper-props (clj->js {:placement "right"}) + :subscription handwrite-checks}]]] [horizontal-field