diff options
| author | ckonstanski <carlos.konstanski@olo.com> | 2026-07-13 16:06:46 -0600 |
|---|---|---|
| committer | ckonstanski <carlos.konstanski@olo.com> | 2026-07-13 16:06:46 -0600 |
| commit | 45442f348785be1c3fa1eb4a596e12438ec574af (patch) | |
| tree | aa8dcb84b8384b2d1ed594008439219df427eaf3 /src/org_ckons_cljs/notifications/react.cljs | |
| parent | 2e716dcc9701167f2da600cae344d77d282dcefd (diff) | |
remove redundant functions
Diffstat (limited to 'src/org_ckons_cljs/notifications/react.cljs')
| -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))) |
