Fix invalid props.
This commit is contained in:
@@ -130,7 +130,7 @@ const DatePicker = (): JSX.Element => {
|
|||||||
const initRef = useRef();
|
const initRef = useRef();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Popover w="100%" h="auto" placement="bottom" initialFocusRef={initRef}>
|
<Popover placement="bottom" initialFocusRef={initRef}>
|
||||||
<PopoverTrigger>
|
<PopoverTrigger>
|
||||||
<Button border="none" variant="outline">
|
<Button border="none" variant="outline">
|
||||||
<Heading w="100%" h="auto">
|
<Heading w="100%" h="auto">
|
||||||
@@ -219,13 +219,13 @@ const DatePicker = (): JSX.Element => {
|
|||||||
textAlign="center"
|
textAlign="center"
|
||||||
{...(!form.errors.date && form.touched.date
|
{...(!form.errors.date && form.touched.date
|
||||||
? {
|
? {
|
||||||
borderColor: "brand.valid",
|
|
||||||
boxShadow: "0 0 0 1px #00c17c",
|
|
||||||
_hover: {
|
|
||||||
borderColor: "brand.valid",
|
borderColor: "brand.valid",
|
||||||
boxShadow: "0 0 0 1px #00c17c",
|
boxShadow: "0 0 0 1px #00c17c",
|
||||||
},
|
_hover: {
|
||||||
}
|
borderColor: "brand.valid",
|
||||||
|
boxShadow: "0 0 0 1px #00c17c",
|
||||||
|
},
|
||||||
|
}
|
||||||
: "")}
|
: "")}
|
||||||
/>
|
/>
|
||||||
{!form.touched.date && (
|
{!form.touched.date && (
|
||||||
|
|||||||
Reference in New Issue
Block a user