1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 07:49:41 +02:00

feat(ui): cluster setup page done EE-3705 (#7267)

This commit is contained in:
Prabhat Khera 2022-07-22 14:16:50 +12:00 committed by GitHub
parent 9a92b97b7e
commit 3645ff7459
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 88 additions and 65 deletions

View file

@ -15,6 +15,7 @@ export interface Props {
name?: string;
tooltip?: string;
labelClass?: string;
switchClass?: string;
dataCy?: string;
disabled?: boolean;
featureId?: FeatureId;
@ -35,6 +36,7 @@ export function SwitchField({
onChange,
featureId,
switchValues,
switchClass,
}: Props) {
const toggleName = name ? `toggle_${name}` : '';
@ -51,7 +53,7 @@ export function SwitchField({
{tooltip && <Tooltip message={tooltip} />}
</span>
<Switch
className="space-right"
className={clsx('space-right', switchClass)}
name={toggleName}
id={toggleName}
checked={checked}