mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 09:28:36 +00:00
Fix type check
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { faChevronRight, faChevronDown } from "@fortawesome/free-solid-svg-icons";
|
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
import { faChevronDown, faChevronRight } from "@fortawesome/free-solid-svg-icons";
|
||||||
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
|
|
||||||
import { TPamSession } from "@app/hooks/api/pam";
|
import { TPamSession } from "@app/hooks/api/pam";
|
||||||
|
|
||||||
@@ -33,10 +33,11 @@ export const PamSessionLogsSection = ({ session }: Props) => {
|
|||||||
session.commandLogs.map((log) => {
|
session.commandLogs.map((log) => {
|
||||||
const isExpanded = expandedLogTimestamps.has(log.timestamp);
|
const isExpanded = expandedLogTimestamps.has(log.timestamp);
|
||||||
return (
|
return (
|
||||||
<div
|
<button
|
||||||
|
type="button"
|
||||||
key={log.timestamp}
|
key={log.timestamp}
|
||||||
className={`flex cursor-pointer flex-col rounded-md border border-mineshaft-700 p-3 ${
|
className={`flex w-full flex-col rounded-md border border-mineshaft-700 p-3 text-left focus:outline-none focus:ring-2 focus:ring-mineshaft-400 ${
|
||||||
isExpanded ? "bg-mineshaft-700" : "bg-mineshaft-800"
|
isExpanded ? "bg-mineshaft-700" : "bg-mineshaft-800 hover:bg-mineshaft-700"
|
||||||
}`}
|
}`}
|
||||||
onClick={() => toggleExpand(log.timestamp)}
|
onClick={() => toggleExpand(log.timestamp)}
|
||||||
>
|
>
|
||||||
@@ -63,7 +64,7 @@ export const PamSessionLogsSection = ({ session }: Props) => {
|
|||||||
{log.output}
|
{log.output}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</button>
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Reference in New Issue
Block a user