aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/comment.fixture.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-10-12 17:24:13 +0200
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:14:41 +0100
commit00f147a7a687d5772bcc538bc606cfff972178cd (patch)
tree27eabeb83c05e14162c51b69d4a6f36d461947fc /src/components/organisms/layout/comment.fixture.ts
parentc87c615b5866b8a8f361eeb0764bfdea85740e90 (diff)
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.
Diffstat (limited to 'src/components/organisms/layout/comment.fixture.ts')
-rw-r--r--src/components/organisms/layout/comment.fixture.ts4
1 files changed, 0 insertions, 4 deletions
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);