diff options
| -rw-r--r-- | src/org_ckons_cljs/notifications/react.cljs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/org_ckons_cljs/notifications/react.cljs b/src/org_ckons_cljs/notifications/react.cljs index 9fad6a4..e44f4f8 100644 --- a/src/org_ckons_cljs/notifications/react.cljs +++ b/src/org_ckons_cljs/notifications/react.cljs @@ -11,8 +11,6 @@ (declare reset-errormsg) (declare comp-message) (declare comp-errormsg) -(declare set-message) -(declare set-errormsg) (def notification-state (r/atom {:message nil :errormsg nil})) @@ -31,9 +29,3 @@ [:div {:class "alert alert-danger" :style {:display (cond (empty? (@notification-state :errormsg)) "none" :else "block")}} (@notification-state :errormsg)]) - -(defn set-message [message] - (reset! notification-state (assoc @notification-state :message message))) - -(defn set-errormsg [errormsg] - (reset! notification-state (assoc @notification-state :errormsg errormsg))) |
