Enhance ObjectCard component to include state visibility condition and adjust line height for improved readability.
This commit is contained in:
parent
b4512a1948
commit
6725b1c399
@ -22,7 +22,8 @@ const ObjectCard = ({
|
|||||||
if (
|
if (
|
||||||
(Object.keys(visibleColumns).length > 0 &&
|
(Object.keys(visibleColumns).length > 0 &&
|
||||||
visibleColumns[prop.name] === false) ||
|
visibleColumns[prop.name] === false) ||
|
||||||
prop.name == 'name'
|
prop.name == 'name' ||
|
||||||
|
(prop.name == 'state' && visibleColumns?.name == true)
|
||||||
) {
|
) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -64,8 +65,7 @@ const ObjectCard = ({
|
|||||||
style={{
|
style={{
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
fontWeight: '600',
|
fontWeight: '600',
|
||||||
lineHeight: 1,
|
lineHeight: 1.2
|
||||||
overflow: 'visible'
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{visibleColumns?.state == true && (
|
{visibleColumns?.state == true && (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user