Date Selector and Dynamic Routes #16

Merged
LucidKobold merged 17 commits from calendar-nav into main 2021-12-05 23:23:41 -05:00
12 changed files with 624 additions and 133 deletions
Showing only changes of commit 2b1f54e2bc - Show all commits

View File

@@ -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 && (