Now a simple re-frame app

This commit is contained in:
Bryce Covert
2017-12-07 11:23:57 -08:00
parent 275119c362
commit 5b578c11e8
13 changed files with 618 additions and 40 deletions

View File

@@ -0,0 +1,13 @@
(ns auto-ap.events
(:require [re-frame.core :as re-frame]
[auto-ap.db :as db]))
(re-frame/reg-event-db
::initialize-db
(fn [_ _]
db/default-db))
(re-frame/reg-event-db
::imported-invoices
(fn [db [_ new-invoices]]
(update-in db [:invoices] into new-invoices)))