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 (
|
||||
(Object.keys(visibleColumns).length > 0 &&
|
||||
visibleColumns[prop.name] === false) ||
|
||||
prop.name == 'name'
|
||||
prop.name == 'name' ||
|
||||
(prop.name == 'state' && visibleColumns?.name == true)
|
||||
) {
|
||||
return
|
||||
}
|
||||
@ -64,8 +65,7 @@ const ObjectCard = ({
|
||||
style={{
|
||||
fontSize: 20,
|
||||
fontWeight: '600',
|
||||
lineHeight: 1,
|
||||
overflow: 'visible'
|
||||
lineHeight: 1.2
|
||||
}}
|
||||
/>
|
||||
{visibleColumns?.state == true && (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user