Commit b9739050 authored by Muhammadali's avatar Muhammadali

update

parent c1de8788
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.8.79", "version": "4.8.80",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -20,9 +20,11 @@ const SettingComponent = ({ ...@@ -20,9 +20,11 @@ const SettingComponent = ({
id: uuidv4(), id: uuidv4(),
title: 'Test-1', title: 'Test-1',
icon: <FormatPaintIcon className={'leftIcons'} />, icon: <FormatPaintIcon className={'leftIcons'} />,
Content: ({keyItem}) => { Content: () => {
console.log('settingComponent_allData: ', keyItem) // return <div></div>
return <SettingMainStyle.RightSelectInfoOneBlock key={keyItem}><StyleComponent /></SettingMainStyle.RightSelectInfoOneBlock> return <SettingMainStyle.RightSelectInfoOneBlock>
<StyleComponent />
</SettingMainStyle.RightSelectInfoOneBlock>
} }
}, },
...@@ -30,7 +32,10 @@ const SettingComponent = ({ ...@@ -30,7 +32,10 @@ const SettingComponent = ({
id: uuidv4(), id: uuidv4(),
title: 'Test-2', title: 'Test-2',
icon: <BuildIcon className={'leftIcons'} />, icon: <BuildIcon className={'leftIcons'} />,
Content: ({ keyItem }) => <SettingMainStyle.RightSelectInfoOneBlock key={keyItem}><FixComponent /></SettingMainStyle.RightSelectInfoOneBlock> Content: () => {
// return <div></div>
return <SettingMainStyle.RightSelectInfoOneBlock><FixComponent /></SettingMainStyle.RightSelectInfoOneBlock>
}
} }
] ]
...@@ -61,7 +66,7 @@ const SettingComponent = ({ ...@@ -61,7 +66,7 @@ const SettingComponent = ({
</SettingMainStyle.LeftMenu> </SettingMainStyle.LeftMenu>
<SettingMainStyle.RightSelectInfo id={'data'}> <SettingMainStyle.RightSelectInfo id={'data'}>
{ {
allData?.map(({ Content, id }) => <Content keyItem={id} />) allData?.map(({ Content, id }) => <Content key={id} />)
} }
</SettingMainStyle.RightSelectInfo> </SettingMainStyle.RightSelectInfo>
......
...@@ -34,7 +34,7 @@ const StyleComponent = () => { ...@@ -34,7 +34,7 @@ const StyleComponent = () => {
aria-label="Restricted values" aria-label="Restricted values"
defaultValue={50} defaultValue={50}
step={null} step={null}
value={typeof useColorConfigStore.state.sizePixel === 'undefined' ? true : useColorConfigStore.state.sizePixel} value={typeof useColorConfigStore.state.sizePixel === 'undefined' ? 1 : useColorConfigStore.state.sizePixel}
marks={marks} marks={marks}
onChange={(e) => useColorConfigStore.setColor({ name: 'sizePixel', value: e.target.value })} onChange={(e) => useColorConfigStore.setColor({ name: 'sizePixel', value: e.target.value })}
/></div> /></div>
...@@ -44,9 +44,11 @@ const StyleComponent = () => { ...@@ -44,9 +44,11 @@ const StyleComponent = () => {
onChange={(e) => useColorConfigStore.setColor({ name: 'switchAnim', value: e.target.checked })} /> onChange={(e) => useColorConfigStore.setColor({ name: 'switchAnim', value: e.target.checked })} />
},] },]
return (<StyleBlock> return (
<MiniTable data={tableData} gap={'10px'} /> <StyleBlock>
</StyleBlock>) <MiniTable data={tableData} gap={'10px'} />
</StyleBlock>
)
} }
export default StyleComponent export default StyleComponent
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