Skip to content

Commit 0580232

Browse files
authored
Merge pull request #2209 from oasisprotocol/lw/cleanup
Remove unused DateFormatter component
2 parents 03be564 + c7548e7 commit 0580232

File tree

3 files changed

+1
-25
lines changed

3 files changed

+1
-25
lines changed

.changelog/2209.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove unused DateFormatter component
Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import { render, screen } from '@testing-library/react'
2-
3-
import { DateFormatter } from '..'
41
import { intlDateTimeFormat } from '../intlDateTimeFormat'
52
import { buildDatetime } from '../../../../../internals/getBuildData'
63

@@ -13,10 +10,3 @@ describe('intlDateTimeFormat', () => {
1310
expect(Number(buildDatetime)).toBeCloseTo(1656932251000, -12) // Less than 16 years difference
1411
})
1512
})
16-
17-
describe('<DateFormatter />', () => {
18-
it('should render component with formatted date', () => {
19-
render(<DateFormatter date={1656932251000} />)
20-
expect(screen.getByText('7/4/2022, 10:57:31 AM')).toBeInTheDocument()
21-
})
22-
})

src/app/components/DateFormatter/index.tsx

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)