Skip to content

Commit

Permalink
Use AcmTimestamp for cluster list
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Cormier <[email protected]>
  • Loading branch information
KevinFCormier committed Dec 18, 2024
1 parent 75c0324 commit 2406d82
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ import keyBy from 'lodash/keyBy'
import { HighlightSearchText } from '../../../../components/HighlightSearchText'
import { SearchOperator } from '../../../../ui-components/AcmSearchInput'
import { handleStandardComparison, handleSemverOperatorComparison } from '../../../../lib/search-utils'
import AcmTimestamp from '../../../../lib/AcmTimestamp'

const onToggle = (acmCardID: string, setOpen: (open: boolean) => void) => {
setOpen(false)
Expand Down Expand Up @@ -995,7 +996,7 @@ export function useClusterCreatedDateColumn(): IAcmTableColumn<Cluster> {
search: 'creationDate',
cellTransforms: [nowrap],
cell: (cluster) => {
return getCreationTimestampString(cluster)
return <AcmTimestamp timestamp={cluster.creationTimestamp ?? ''} />
},
exportContent: (cluster) => {
return getCreationTimestampString(cluster)
Expand Down

0 comments on commit 2406d82

Please sign in to comment.