initial commit
This commit is contained in:
@@ -31,27 +31,30 @@ export const DesktopLogsTable = ({
|
||||
{logs.map((log) => (
|
||||
<DataTable.Row key={log.id}>
|
||||
<DataTable.Cell>
|
||||
<View className="flex-row items-center flex-shrink pr-2">
|
||||
<View className="flex-row items-center shrink pr-2">
|
||||
<Text numberOfLines={1}>{log.name}</Text>
|
||||
</View>
|
||||
</DataTable.Cell>
|
||||
<DataTable.Cell>
|
||||
<View className="flex-row items-center flex-shrink pr-2">
|
||||
<View className="flex-row items-center shrink pr-2">
|
||||
<Text numberOfLines={1}>{log.email}</Text>
|
||||
</View>
|
||||
</DataTable.Cell>
|
||||
<DataTable.Cell>
|
||||
<View className="flex-row items-center flex-shrink pr-2">
|
||||
<View className="flex-row items-center shrink pr-2">
|
||||
<Text numberOfLines={1}>
|
||||
{formatDate(log.lastLoginAt)} {formatTimeWithSeconds(log.lastLoginAt)}
|
||||
{formatDate(log.lastLoginAt)}{" "}
|
||||
{formatTimeWithSeconds(log.lastLoginAt)}
|
||||
</Text>
|
||||
</View>
|
||||
</DataTable.Cell>
|
||||
<DataTable.Cell>
|
||||
<View className="flex-row items-center flex-shrink pr-2">
|
||||
<View className="flex-row items-center shrink pr-2">
|
||||
<Text
|
||||
numberOfLines={1}
|
||||
style={{ color: log.status === "FAILURE" ? "#F83434" : "#22C927" }}
|
||||
style={{
|
||||
color: log.status === "FAILURE" ? "#F83434" : "#22C927",
|
||||
}}
|
||||
>
|
||||
{log.activity}
|
||||
{log.status === "FAILURE" && reasonLabel(log.failureReason)
|
||||
|
||||
Reference in New Issue
Block a user