(
+ () => (typeof color === 'string' ? color : color!.toHexString()),
+ [color],
+ );
+
+ const btnStyle: React.CSSProperties = {
+ backgroundColor: bgColor,
+ width: '100%'
+ };
+
+ useEffect(() => {
+ form.setFieldsValue({
+ ...parseColor(color)
+ })
+ },[])
+
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
\ No newline at end of file
diff --git a/yarn.lock b/yarn.lock
index 2cdaa34..84686ac 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2626,6 +2626,11 @@ color-name@~1.1.4:
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
+colord@^2.9.3:
+ version "2.9.3"
+ resolved "https://registry.npmmirror.com/colord/-/colord-2.9.3.tgz#4f8ce919de456f1d5c1c368c307fe20f3e59fb43"
+ integrity sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==
+
commander@^11.0.0, commander@^11.1.0:
version "11.1.0"
resolved "https://registry.npmmirror.com/commander/-/commander-11.1.0.tgz#62fdce76006a68e5c1ab3314dc92e800eb83d906"