From 00f147a7a687d5772bcc538bc606cfff972178cd Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 12 Oct 2023 17:24:13 +0200 Subject: feat(components): add a Time component Instead of using helpers functions to format the date each time we need to use a time element, it makes more sense to create a new component dedicated to this task. --- src/components/organisms/layout/comment.fixture.ts | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/components/organisms/layout/comment.fixture.ts') diff --git a/src/components/organisms/layout/comment.fixture.ts b/src/components/organisms/layout/comment.fixture.ts index f626be9..bb18d22 100644 --- a/src/components/organisms/layout/comment.fixture.ts +++ b/src/components/organisms/layout/comment.fixture.ts @@ -1,4 +1,3 @@ -import { getFormattedDate, getFormattedTime } from '../../../utils/helpers'; import type { UserCommentProps } from './comment'; export const author = { @@ -36,6 +35,3 @@ export const data: UserCommentProps = { parentId: 0, saveComment, }; - -export const formattedDate = getFormattedDate(date); -export const formattedTime = getFormattedTime(date); -- cgit v1.2.3