Skip to content

Commit

Permalink
Chore: Replace timeAgo on WebdavFilePickerTable (#26564)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris authored Aug 12, 2022
1 parent 662ffb8 commit 9557513
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Box, Icon, States, StatesIcon, StatesTitle } from '@rocket.chat/fuselag
import { useTranslation } from '@rocket.chat/ui-contexts';
import React, { ReactElement, ComponentProps } from 'react';

import { timeAgo } from '../../../../../app/ui/client/views/app/helpers';
import {
GenericTable,
GenericTableBody,
Expand All @@ -13,6 +12,7 @@ import {
GenericTableLoadingRow,
GenericTableRow,
} from '../../../../components/GenericTable';
import { timeAgo } from '../../../../lib/utils/timeAgo';
import type { WebdavSortOptions } from './WebdavFilePickerModal';
import { getNodeFileSize } from './lib/getNodeFileSize';
import { getNodeIconType } from './lib/getNodeIconType';
Expand Down Expand Up @@ -83,7 +83,7 @@ const WebdavFilePickerTable = ({
<Box withTruncatedText>{getNodeFileSize(webdavNode.type, webdavNode?.size)}</Box>
</GenericTableCell>
<GenericTableCell fontScale='p2' color='default'>
<Box withTruncatedText>{timeAgo(new Date(), t)}</Box>
<Box withTruncatedText>{timeAgo(new Date())}</Box>
</GenericTableCell>
</GenericTableRow>
);
Expand Down

0 comments on commit 9557513

Please sign in to comment.