Add Aspects Section to ListingVarientInfo Component
- Introduced a new 'Aspects' collapsible section in the ListingVarientInfo component, enhancing the information displayed for listing variants. - Added a BulletListIcon for visual representation of the new section. - Updated the visible properties to include aspects, improving data organization and user experience.
This commit is contained in:
parent
26132d206c
commit
cb2265aa81
@ -12,6 +12,7 @@ import ObjectProperty from '../../common/ObjectProperty.jsx'
|
|||||||
import ViewButton from '../../common/ViewButton'
|
import ViewButton from '../../common/ViewButton'
|
||||||
import InfoCircleIcon from '../../../Icons/InfoCircleIcon.jsx'
|
import InfoCircleIcon from '../../../Icons/InfoCircleIcon.jsx'
|
||||||
import PictureIcon from '../../../Icons/PictureIcon.jsx'
|
import PictureIcon from '../../../Icons/PictureIcon.jsx'
|
||||||
|
import BulletListIcon from '../../../Icons/BulletListIcon.jsx'
|
||||||
import NoteIcon from '../../../Icons/NoteIcon.jsx'
|
import NoteIcon from '../../../Icons/NoteIcon.jsx'
|
||||||
import AuditLogIcon from '../../../Icons/AuditLogIcon.jsx'
|
import AuditLogIcon from '../../../Icons/AuditLogIcon.jsx'
|
||||||
import ObjectForm from '../../common/ObjectForm'
|
import ObjectForm from '../../common/ObjectForm'
|
||||||
@ -55,6 +56,7 @@ const ListingVarientInfo = () => {
|
|||||||
{
|
{
|
||||||
info: true,
|
info: true,
|
||||||
listingImages: true,
|
listingImages: true,
|
||||||
|
aspects: true,
|
||||||
notes: true,
|
notes: true,
|
||||||
auditLogs: false
|
auditLogs: false
|
||||||
}
|
}
|
||||||
@ -118,6 +120,7 @@ const ListingVarientInfo = () => {
|
|||||||
items={[
|
items={[
|
||||||
{ key: 'info', label: 'Listing Varient Information' },
|
{ key: 'info', label: 'Listing Varient Information' },
|
||||||
{ key: 'listingImages', label: 'Listing Images' },
|
{ key: 'listingImages', label: 'Listing Images' },
|
||||||
|
{ key: 'aspects', label: 'Aspects' },
|
||||||
{ key: 'notes', label: 'Notes' },
|
{ key: 'notes', label: 'Notes' },
|
||||||
{ key: 'auditLogs', label: 'Audit Logs' }
|
{ key: 'auditLogs', label: 'Audit Logs' }
|
||||||
]}
|
]}
|
||||||
@ -196,7 +199,10 @@ const ListingVarientInfo = () => {
|
|||||||
isEditing={isEditing}
|
isEditing={isEditing}
|
||||||
type='listingVarient'
|
type='listingVarient'
|
||||||
objectData={objectData}
|
objectData={objectData}
|
||||||
visibleProperties={{ listingImages: false }}
|
visibleProperties={{
|
||||||
|
listingImages: false,
|
||||||
|
aspects: false
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</InfoCollapse>
|
</InfoCollapse>
|
||||||
<InfoCollapse
|
<InfoCollapse
|
||||||
@ -217,6 +223,23 @@ const ListingVarientInfo = () => {
|
|||||||
showCard={false}
|
showCard={false}
|
||||||
/>
|
/>
|
||||||
</InfoCollapse>
|
</InfoCollapse>
|
||||||
|
<InfoCollapse
|
||||||
|
title='Aspects'
|
||||||
|
icon={<BulletListIcon />}
|
||||||
|
active={collapseState.aspects}
|
||||||
|
onToggle={(expanded) =>
|
||||||
|
updateCollapseState('aspects', expanded)
|
||||||
|
}
|
||||||
|
collapseKey='aspects'
|
||||||
|
>
|
||||||
|
<ObjectProperty
|
||||||
|
{...getModelProperty('listingVarient', 'aspects')}
|
||||||
|
isEditing={isEditing}
|
||||||
|
objectData={objectData}
|
||||||
|
loading={loading}
|
||||||
|
size='medium'
|
||||||
|
/>
|
||||||
|
</InfoCollapse>
|
||||||
</Flex>
|
</Flex>
|
||||||
)}
|
)}
|
||||||
</ObjectForm>
|
</ObjectForm>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user