fix: show today timestamp as single line on activity logs
This commit is contained in:
@@ -186,14 +186,18 @@ function AppLogsPage() {
|
|||||||
<ThemeIcon variant="transparent" color="gray" size="sm">
|
<ThemeIcon variant="transparent" color="gray" size="sm">
|
||||||
<TbCalendar size={14} />
|
<TbCalendar size={14} />
|
||||||
</ThemeIcon>
|
</ThemeIcon>
|
||||||
<Stack gap={0}>
|
{log.createdAt.endsWith('lalu') ? (
|
||||||
<Text size="xs" fw={700}>
|
<Text size="xs" fw={700}>{log.createdAt}</Text>
|
||||||
{log.createdAt.split(' ').slice(1).join(' ')}
|
) : (
|
||||||
</Text>
|
<Stack gap={0}>
|
||||||
<Text size="xs" c="dimmed">
|
<Text size="xs" fw={700}>
|
||||||
{log.createdAt.split(' ')[0]}
|
{log.createdAt.split(' ').slice(1).join(' ')}
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
<Text size="xs" c="dimmed">
|
||||||
|
{log.createdAt.split(' ')[0]}
|
||||||
|
</Text>
|
||||||
|
</Stack>
|
||||||
|
)}
|
||||||
</Group>
|
</Group>
|
||||||
</Table.Td>
|
</Table.Td>
|
||||||
<Table.Td>
|
<Table.Td>
|
||||||
|
|||||||
Reference in New Issue
Block a user