1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

feat(ui): portainer settings page ui EE-3566 (#7259)

* settings page ui change
This commit is contained in:
Richard Wei 2022-07-27 13:05:25 +12:00 committed by GitHub
parent 3239a61bda
commit ac6296b86d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 104 additions and 75 deletions

View file

@ -16,6 +16,7 @@ export interface Props {
tooltip?: string;
labelClass?: string;
switchClass?: string;
fieldClass?: string;
dataCy?: string;
disabled?: boolean;
featureId?: FeatureId;
@ -31,6 +32,7 @@ export function SwitchField({
label,
name,
labelClass,
fieldClass,
dataCy,
disabled,
onChange,
@ -41,10 +43,10 @@ export function SwitchField({
const toggleName = name ? `toggle_${name}` : '';
return (
<label className={styles.root}>
<label className={clsx(styles.root, fieldClass)}>
<span
className={clsx(
'control-label text-left space-right',
'text-left space-right control-label',
styles.label,
labelClass
)}