We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4ce250 commit 88c379fCopy full SHA for 88c379f
src/components/Shared/ResourceStatusCell.tsx
@@ -3,12 +3,16 @@ import { StatusCellProps } from '../../lib/shared/interfaces';
3
import { timeAgo } from '../../utils/i18n/timeAgo';
4
5
export function ResourceStatusCell({ value, transitionTime }: StatusCellProps) {
6
+ console.log('transitionTime');
7
+ console.log(transitionTime);
8
return (
9
<Icon
10
design={value ? 'Positive' : 'Negative'}
11
name={value ? 'sys-enter-2' : 'sys-cancel-2'}
12
showTooltip={true}
- accessibleName={timeAgo.format(new Date(transitionTime))}
13
+ accessibleName={
14
+ transitionTime ? timeAgo.format(new Date(transitionTime)) : '-'
15
+ }
16
/>
17
);
18
}
0 commit comments