feat: map logs and fix chevron

This commit is contained in:
RadoslavDimchev 2023-10-18 16:11:46 +03:00
parent 2c87e15934
commit 449cdedd63

View File

@ -34,25 +34,16 @@ const LogsList = () => {
<Text size={15} weight={'semibold'}>
Logs
</Text>
<div style={{ marginRight: '8px' }}>
<ChevronRightIcon size={20} />
</div>
<ChevronRightIcon size={20} style={{ marginRight: '8px' }} />
</XStack>
<InformationBox
message="Critical Logs: 0.01 / M"
icon={<CloseCircleIcon size={20} />}
variant="default"
/>
<InformationBox
message="Warning Logs: 0.01 / M"
icon={<CloseCircleIcon size={20} />}
variant="default"
/>
<InformationBox
message="Error Logs: 0.01 / M"
icon={<CloseCircleIcon size={20} />}
variant="default"
/>
{logs.map(log => (
<InformationBox
key={log.message}
message={log.message}
icon={<CloseCircleIcon size={20} />}
variant={log.variant}
/>
))}
</YStack>
)
}