mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-16 00:30:02 +00:00
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:
@@ -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;
|
||||
Reference in New Issue
Block a user