Skip to content

Commit 1f1dc08

Browse files
committed
force push cell component change
1 parent 8abbca6 commit 1f1dc08

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

components/kern-table/CellComponents.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { FeedbackType, ModelsDownloadedStatus } from "@/submodules/javascript-fu
1010
import LoadingIcon from "@/submodules/react-components/components/LoadingIcon";
1111
import { EvaluationRunState } from "../../types/evaluationRun";
1212
import { MemoIconAlertCircle, MemoIconAlertTriangleFilled, MemoIconArrowRight, MemoIconCircleCheckFilled, MemoIconExternalLink, MemoIconFileDownload, MemoIconInfoCircle, MemoIconInfoSquare, MemoIconLoader, MemoIconNotes, MemoIconTag, MemoIconThumbDownFilled, MemoIconThumbUpFilled, MemoIconTrash, MemoIconUserX } from "../kern-icons/icons";
13-
import { convertUTCTimeStringToLocalTimeString } from "@/src/services/environmentVariable";
1413

1514

1615
function OrganizationAndUsersCell({ organization }) {
@@ -318,13 +317,9 @@ function EditIntegrationCell({ onClick }) {
318317
}
319318

320319
function ExpiredTokenCell({ value }) {
321-
const valueIsExpired = useMemo(() => {
322-
return new Date(value) < new Date();
323-
}, [value]);
324-
325320
return <div className="flex justify-center">
326-
{convertUTCTimeStringToLocalTimeString(value, null)}
327-
{valueIsExpired && <Tooltip content="Expired Token" color="invert" placement="top" className="cursor-auto">
321+
{value[0]}
322+
{value[1] && <Tooltip content="Expired Token" color="invert" placement="top" className="cursor-auto">
328323
<MemoIconAlertCircle className="h-6 w-6 text-red-500" />
329324
</Tooltip>}
330325
</div>

0 commit comments

Comments
 (0)