Skip to content

Commit

Permalink
refactor(releases): removing shortRelativeDate (#7051)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanl17 committed Jul 2, 2024
1 parent be193b8 commit 6f33dfc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 130 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {Box, Card, Flex, Stack, Text} from '@sanity/ui'
import {RelativeTime} from 'sanity'
import {useRouter} from 'sanity/router'

import {type BundleDocument} from '../../../store/bundles/types'
import {VersionBadge} from '../../../versions/components/VersionBadge'
import {shortRelativeDate} from '../../utils/shortRelativeDate'
import {BundleMenuButton} from '../BundleMenuButton/BundleMenuButton'

type Props = {
Expand Down Expand Up @@ -42,7 +42,7 @@ export function BundleRow({bundle}: Props) {
<Flex as="td" align="center" paddingX={2} paddingY={3} sizing="border" style={{width: 100}}>
{!!bundle.publishedAt && (
<Text muted size={1}>
{shortRelativeDate(bundle.publishedAt)}
<RelativeTime time={bundle.publishedAt} />
</Text>
)}
</Flex>
Expand Down

This file was deleted.

36 changes: 0 additions & 36 deletions packages/sanity/src/core/releases/utils/shortRelativeDate.ts

This file was deleted.

0 comments on commit 6f33dfc

Please sign in to comment.