mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-14 23:44:01 +02:00
add initial table columns
This commit is contained in:
@@ -2,7 +2,7 @@ import formatDuration from 'format-duration';
|
||||
|
||||
import {
|
||||
ItemTableListInnerColumn,
|
||||
TableColumnContainer,
|
||||
TableColumnTextContainer,
|
||||
} from '/@/renderer/components/item-list/item-table-list/item-table-list-column';
|
||||
import { Skeleton } from '/@/shared/components/skeleton/skeleton';
|
||||
|
||||
@@ -12,12 +12,14 @@ export const DurationColumn = (props: ItemTableListInnerColumn) => {
|
||||
];
|
||||
|
||||
if (typeof row === 'number') {
|
||||
return <TableColumnContainer {...props}>{formatDuration(row)}</TableColumnContainer>;
|
||||
return (
|
||||
<TableColumnTextContainer {...props}>{formatDuration(row)}</TableColumnTextContainer>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<TableColumnContainer {...props}>
|
||||
<TableColumnTextContainer {...props}>
|
||||
<Skeleton />
|
||||
</TableColumnContainer>
|
||||
</TableColumnTextContainer>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user