This commit is contained in:
Bryce Covert
2018-05-18 11:23:54 -07:00
parent 4312c0e2ad
commit d020a4d254
7 changed files with 386 additions and 263 deletions

View File

@@ -9,7 +9,8 @@
[cljs-time.format :as format]
[goog.string :as gstring]))
;; TODO partial payments
;; TODO graphql schema enforcement
;; TODO postgres constraints for data integrity
;; TODO performance
;; TODO refactor graphql

View File

@@ -0,0 +1,18 @@
(ns auto-ap.views.components.modal
(:require [re-frame.core :as re-frame]))
(defn modal [{:keys [title foot hide-event]} & body]
[:div.modal.is-active
[:div.modal-background {:on-click (fn [] (re-frame/dispatch hide-event ))}]
[:div.modal-card
[:header.modal-card-head
[:p.modal-card-title
title]
[:button.delete {:on-click (fn [] (re-frame/dispatch hide-event))}]]
[:section.modal-card-body
body]
(when foot
[:footer.modal-card-foot
foot])]])