database inserts.
This commit is contained in:
@@ -62,19 +62,17 @@
|
||||
[:th "Invoice #"]
|
||||
[:th "Date"]
|
||||
[:th "Amount"]]]
|
||||
[:tbody (for [{:strs [customer_identifier invoice_number date total] :as i} @invoices]
|
||||
^{:key (str customer_identifier "-" invoice_number)}
|
||||
[:tbody (for [{:keys [customer-identifier invoice-number date total id] :as i} @invoices]
|
||||
^{:key (str customer-identifier "-" invoice-number "-" date "-" total "-" id)}
|
||||
[:tr
|
||||
[:td customer_identifier]
|
||||
[:td invoice_number]
|
||||
[:td customer-identifier]
|
||||
[:td invoice-number]
|
||||
[:td date]
|
||||
[:td total]])]]]))
|
||||
{:component-did-mount (fn []
|
||||
(go
|
||||
(->> (<! (http/get "/api/invoices"))
|
||||
:body
|
||||
(.parse js/JSON )
|
||||
(js->clj)
|
||||
(conj [::events/received-invoices])
|
||||
(re-frame/dispatch))))})])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user