Add "My Profile" Page

Make integer parsing in ConfigService more robust
Add validation to config pages
Implement Cron expression validator
This commit is contained in:
Simon Grimme
2024-09-11 18:06:21 +02:00
parent 156c6b9184
commit 1273714b8d
20 changed files with 303 additions and 201 deletions
@@ -0,0 +1,23 @@
import {useField} from "formik";
import {Checkbox} from "@nextui-org/react";
// @ts-ignore
const CheckboxInput = ({label, ...props}) => {
// @ts-ignore
const [field] = useField(props);
return (
<div className="flex flex-row flex-grow items-center gap-2 my-2">
<Checkbox
{...field}
{...props}
id={field.name}
isSelected={field.value}
>
{label}
</Checkbox>
</div>
);
}
export default CheckboxInput;