mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-21 22:28:16 +00:00
fix: minor tw4 fixes and lint tw format
This commit is contained in:
@@ -60,7 +60,7 @@ export const PamSessionRow = ({ session, search, filteredCommandLogs }: Props) =
|
||||
return (
|
||||
<>
|
||||
<Tr
|
||||
className={twMerge("group h-10 cursor-pointer hover:bg-bunker-400/20")}
|
||||
className={twMerge("hover:bg-bunker-400/20 group h-10 cursor-pointer")}
|
||||
onClick={() => router.history.push(`/projects/pam/${projectId}/sessions/${id}`)}
|
||||
>
|
||||
<Td>
|
||||
@@ -77,7 +77,7 @@ export const PamSessionRow = ({ session, search, filteredCommandLogs }: Props) =
|
||||
<span>
|
||||
<HighlightText text={accountName} highlight={search} />
|
||||
</span>
|
||||
<div className="flex items-center gap-1 text-xs text-bunker-300">
|
||||
<div className="text-bunker-300 flex items-center gap-1 text-xs">
|
||||
<FontAwesomeIcon icon={faBoxOpen} className="size-3" />
|
||||
<span>
|
||||
<HighlightText text={resourceName} highlight={search} />
|
||||
@@ -92,7 +92,7 @@ export const PamSessionRow = ({ session, search, filteredCommandLogs }: Props) =
|
||||
<span>
|
||||
<HighlightText text={actorName} highlight={search} />
|
||||
</span>
|
||||
<span className="text-xs text-bunker-300">
|
||||
<span className="text-bunker-300 text-xs">
|
||||
<HighlightText text={actorEmail} highlight={search} />
|
||||
</span>
|
||||
</div>
|
||||
@@ -100,7 +100,7 @@ export const PamSessionRow = ({ session, search, filteredCommandLogs }: Props) =
|
||||
<Td>
|
||||
<div className="flex flex-col">
|
||||
<span>{new Date(createdAt).toLocaleTimeString()}</span>
|
||||
<span className="text-xs text-bunker-300">
|
||||
<span className="text-bunker-300 text-xs">
|
||||
{new Date(createdAt).toLocaleDateString()}
|
||||
</span>
|
||||
</div>
|
||||
@@ -109,7 +109,7 @@ export const PamSessionRow = ({ session, search, filteredCommandLogs }: Props) =
|
||||
{endedAt ? (
|
||||
<div className="flex flex-col">
|
||||
<span>{new Date(endedAt).toLocaleTimeString()}</span>
|
||||
<span className="text-xs text-bunker-300">
|
||||
<span className="text-bunker-300 text-xs">
|
||||
{new Date(endedAt).toLocaleDateString()}
|
||||
</span>
|
||||
</div>
|
||||
@@ -161,7 +161,7 @@ export const PamSessionRow = ({ session, search, filteredCommandLogs }: Props) =
|
||||
<Td colSpan={5} className="py-3 text-xs">
|
||||
{logsToShow.map((log) => (
|
||||
<div key={`${id}-log-${log.timestamp}`} className="mb-4 flex flex-col last:mb-0">
|
||||
<div className="flex items-center gap-1.5 text-bunker-400">
|
||||
<div className="text-bunker-400 flex items-center gap-1.5">
|
||||
<FontAwesomeIcon icon={faTerminal} className="size-3" />
|
||||
<span>{new Date(log.timestamp).toLocaleString()}</span>
|
||||
</div>
|
||||
@@ -169,7 +169,7 @@ export const PamSessionRow = ({ session, search, filteredCommandLogs }: Props) =
|
||||
<div className="font-mono">
|
||||
<HighlightText text={log.input.trim()} highlight={search} />
|
||||
</div>
|
||||
<div className="font-mono text-bunker-300">
|
||||
<div className="text-bunker-300 font-mono">
|
||||
<HighlightText text={log.output.trim()} highlight={search} />
|
||||
</div>
|
||||
</div>
|
||||
@@ -181,7 +181,7 @@ export const PamSessionRow = ({ session, search, filteredCommandLogs }: Props) =
|
||||
size="xs"
|
||||
leftIcon={<FontAwesomeIcon icon={showAllLogs ? faChevronUp : faChevronDown} />}
|
||||
onClick={() => setShowAllLogs(!showAllLogs)}
|
||||
className="p-0 text-mineshaft-300 hover:text-primary"
|
||||
className="text-mineshaft-300 hover:text-primary p-0"
|
||||
>
|
||||
{showAllLogs
|
||||
? "Show less"
|
||||
|
||||
Reference in New Issue
Block a user