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:
parent
3239a61bda
commit
ac6296b86d
6 changed files with 104 additions and 75 deletions
|
@ -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
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue