Commit c1de8788 authored by Muhammadali's avatar Muhammadali

update

parent bf3a7e98
...@@ -20,14 +20,17 @@ const SettingComponent = ({ ...@@ -20,14 +20,17 @@ const SettingComponent = ({
id: uuidv4(), id: uuidv4(),
title: 'Test-1', title: 'Test-1',
icon: <FormatPaintIcon className={'leftIcons'} />, icon: <FormatPaintIcon className={'leftIcons'} />,
content: (key) => <SettingMainStyle.RightSelectInfoOneBlock key={key}><StyleComponent /></SettingMainStyle.RightSelectInfoOneBlock> Content: ({keyItem}) => {
console.log('settingComponent_allData: ', keyItem)
return <SettingMainStyle.RightSelectInfoOneBlock key={keyItem}><StyleComponent /></SettingMainStyle.RightSelectInfoOneBlock>
}
}, },
{ {
id: uuidv4(), id: uuidv4(),
title: 'Test-2', title: 'Test-2',
icon: <BuildIcon className={'leftIcons'} />, icon: <BuildIcon className={'leftIcons'} />,
content: (key) => <SettingMainStyle.RightSelectInfoOneBlock key={key}><FixComponent /></SettingMainStyle.RightSelectInfoOneBlock> Content: ({ keyItem }) => <SettingMainStyle.RightSelectInfoOneBlock key={keyItem}><FixComponent /></SettingMainStyle.RightSelectInfoOneBlock>
} }
] ]
...@@ -58,7 +61,7 @@ const SettingComponent = ({ ...@@ -58,7 +61,7 @@ const SettingComponent = ({
</SettingMainStyle.LeftMenu> </SettingMainStyle.LeftMenu>
<SettingMainStyle.RightSelectInfo id={'data'}> <SettingMainStyle.RightSelectInfo id={'data'}>
{ {
allData?.map(({ content, id }) => { content(id) }) allData?.map(({ Content, id }) => <Content keyItem={id} />)
} }
</SettingMainStyle.RightSelectInfo> </SettingMainStyle.RightSelectInfo>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment