Simplify feature checkbox listing
[MAILPOET-2008]
This commit is contained in:
@@ -57,10 +57,7 @@ const ExperimentalFeatures = () => {
|
|||||||
return <p>There are no experimental features at the moment.</p>;
|
return <p>There are no experimental features at the moment.</p>;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return Object.values(flags).map((flag) => {
|
||||||
<>
|
|
||||||
{
|
|
||||||
Object.values(flags).map((flag) => {
|
|
||||||
const id = `experimental-feature-${flag.name}`;
|
const id = `experimental-feature-${flag.name}`;
|
||||||
return (
|
return (
|
||||||
<div key={flag.name}>
|
<div key={flag.name}>
|
||||||
@@ -77,10 +74,7 @@ const ExperimentalFeatures = () => {
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})
|
});
|
||||||
}
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const experimentalFeaturesContainer = document.getElementById('experimental_features_container');
|
const experimentalFeaturesContainer = document.getElementById('experimental_features_container');
|
||||||
|
Reference in New Issue
Block a user