From 067464104a5a9adf1e4acac3096923d9d03b892c Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Thu, 12 Jul 2018 16:40:11 -0300 Subject: [PATCH] Rename Timestamp to RelativeTime --- src/core/client/stream/components/Comment.tsx | 4 ++-- .../components/__snapshots__/Comment.spec.tsx.snap | 4 ++-- .../stream/test/__snapshots__/loadMore.spec.tsx.snap | 10 +++++----- .../test/__snapshots__/renderReplies.spec.tsx.snap | 8 ++++---- .../test/__snapshots__/renderStream.spec.tsx.snap | 4 ++-- .../test/__snapshots__/showAllReplies.spec.tsx.snap | 10 +++++----- .../Timestamp.css => RelativeTime/RelativeTime.css} | 0 .../Timestamp.mdx => RelativeTime/RelativeTime.mdx} | 8 ++++---- .../RelativeTime.spec.tsx} | 8 ++++---- .../Timestamp.tsx => RelativeTime/RelativeTime.tsx} | 8 ++++---- .../__snapshots__/RelativeTime.spec.tsx.snap} | 6 +++--- src/core/client/ui/components/RelativeTime/index.ts | 2 ++ src/core/client/ui/components/Timestamp/index.ts | 2 -- src/core/client/ui/components/index.ts | 2 +- 14 files changed, 38 insertions(+), 38 deletions(-) rename src/core/client/ui/components/{Timestamp/Timestamp.css => RelativeTime/RelativeTime.css} (100%) rename src/core/client/ui/components/{Timestamp/Timestamp.mdx => RelativeTime/RelativeTime.mdx} (67%) rename src/core/client/ui/components/{Timestamp/Timestamp.spec.tsx => RelativeTime/RelativeTime.spec.tsx} (80%) rename src/core/client/ui/components/{Timestamp/Timestamp.tsx => RelativeTime/RelativeTime.tsx} (81%) rename src/core/client/ui/components/{Timestamp/__snapshots__/Timestamp.spec.tsx.snap => RelativeTime/__snapshots__/RelativeTime.spec.tsx.snap} (84%) create mode 100644 src/core/client/ui/components/RelativeTime/index.ts delete mode 100644 src/core/client/ui/components/Timestamp/index.ts diff --git a/src/core/client/stream/components/Comment.tsx b/src/core/client/stream/components/Comment.tsx index 836b0dbf0..dea610494 100644 --- a/src/core/client/stream/components/Comment.tsx +++ b/src/core/client/stream/components/Comment.tsx @@ -2,7 +2,7 @@ import cn from "classnames"; import React from "react"; import { StatelessComponent } from "react"; -import { Timestamp, Typography } from "talk-ui/components"; +import { RelativeTime, Typography } from "talk-ui/components"; import * as styles from "./Comment.css"; import Username from "./Username"; @@ -25,7 +25,7 @@ const Comment: StatelessComponent = props => {
{props.author && {props.author.username}} - +
{props.body}
diff --git a/src/core/client/stream/components/__snapshots__/Comment.spec.tsx.snap b/src/core/client/stream/components/__snapshots__/Comment.spec.tsx.snap index c391feee4..c5fdd9806 100644 --- a/src/core/client/stream/components/__snapshots__/Comment.spec.tsx.snap +++ b/src/core/client/stream/components/__snapshots__/Comment.spec.tsx.snap @@ -11,7 +11,7 @@ exports[`renders username and body 1`] = ` Marvin - @@ -32,7 +32,7 @@ exports[`renders with gutterBottom 1`] = ` Marvin - diff --git a/src/core/client/stream/test/__snapshots__/loadMore.spec.tsx.snap b/src/core/client/stream/test/__snapshots__/loadMore.spec.tsx.snap index 1ea734b2b..ac6fc560a 100644 --- a/src/core/client/stream/test/__snapshots__/loadMore.spec.tsx.snap +++ b/src/core/client/stream/test/__snapshots__/loadMore.spec.tsx.snap @@ -57,7 +57,7 @@ exports[`loads more comments 1`] = ` Markus