Added dynamic properties to settings in AdminX DS

refs. https://github.com/TryGhost/Team/issues/3150

- Setting group values were taking their input parameters statically which meant that it didn't auto-extend as new props have been added
This commit is contained in:
Peter Zimon 2023-05-17 15:42:23 +02:00
parent 0b4fc8d591
commit 2978b4752b

View File

@ -17,8 +17,8 @@ const SettingGroupValues: React.FC<ISettingGroupValues> = ({columns, values, chi
return (
<div className={styles}>
{values && values.map(value => (
<SettingValue key={value.key} heading={value.heading} value={value.value} />
{values && values.map(({key, ...props}) => (
<SettingValue key={key} {...props} />
))}
{children}
</div>