minor fix

This commit is contained in:
Bryce Covert
2022-12-30 09:53:13 -08:00
parent d5dcfcbe3c
commit 98eeb223f4

View File

@@ -2,7 +2,7 @@
(:require [reagent.core :as r]
[clojure.string :as str]
[react :as react]))
(def good-% #"^\d{1,3}(?:\.\d{1,3})?$")
(def good-% #"^\d{1,3}(?:\.\d{1,4})?$")
(defn -percentage-field [{:keys [min max disabled on-blur on-change value class style placeholder]}]
(let [[ parsed-amount set-parsed-amount] (react/useState {:parsed value