-
-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support disabling jellyfin login
- Loading branch information
1 parent
ca73931
commit 4d7eba8
Showing
34 changed files
with
185 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { Field } from 'formik'; | ||
|
||
interface LabeledCheckboxProps { | ||
id: string; | ||
className?: string; | ||
label: string; | ||
description: string; | ||
onChange: () => void; | ||
children?: React.ReactNode; | ||
} | ||
|
||
const LabeledCheckbox: React.FC<LabeledCheckboxProps> = ({ | ||
id, | ||
className, | ||
label, | ||
description, | ||
onChange, | ||
children, | ||
}) => { | ||
return ( | ||
<> | ||
<div className={`relative flex items-start ${className}`}> | ||
<div className="flex h-6 items-center"> | ||
<Field type="checkbox" id={id} name={id} onChange={onChange} /> | ||
</div> | ||
<div className="ml-3 text-sm leading-6"> | ||
<label htmlFor="localLogin" className="block"> | ||
<div className="flex flex-col"> | ||
<span className="font-medium text-white">{label}</span> | ||
<span className="font-normal text-gray-400">{description}</span> | ||
</div> | ||
</label> | ||
</div> | ||
</div> | ||
{ | ||
/* can hold child checkboxes */ | ||
children && <div className="mt-4 pl-10">{children}</div> | ||
} | ||
</> | ||
); | ||
}; | ||
|
||
export default LabeledCheckbox; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.