Expanded the add stickers modal to include a confirmation screen when updating a sticker on a past day. Step state is not resetting on close.

This commit is contained in:
Lucid Kobold
2022-03-27 01:32:15 -05:00
parent 78abdc7e41
commit fb53187438
4 changed files with 201 additions and 77 deletions

View File

@@ -24,8 +24,8 @@ import {
Field,
FieldProps
} from "formik";
import { format } from "date-fns"
import findValidDateRange from "../../lib/findValidDateRange"
import { format } from "date-fns";
import findValidDateRange from "../../lib/findValidDateRange";
import FormValidateEmoji from "./FormValidateEmoji";
import { CalenderContext } from "../../contexts/CalenderContext";
@@ -220,13 +220,13 @@ const DatePicker = (): JSX.Element => {
max={format(validDateRange.end, "yyyy-MM-dd")}
{...(!form.errors.date && form.touched.date
? {
borderColor: "brand.valid",
boxShadow: "0 0 0 1px #00c17c",
_hover: {
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 && (