From e1b51c84c5af592e2137a76f2bb34c3bfdd32cee Mon Sep 17 00:00:00 2001 From: Marc Date: Wed, 28 Jun 2023 10:04:38 +0200 Subject: [PATCH] Update packages/core/helper-plugin/src/components/RelativeTime/index.js Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com> --- .../core/helper-plugin/src/components/RelativeTime/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/core/helper-plugin/src/components/RelativeTime/index.js b/packages/core/helper-plugin/src/components/RelativeTime/index.js index 41ede62600..bb73064610 100644 --- a/packages/core/helper-plugin/src/components/RelativeTime/index.js +++ b/packages/core/helper-plugin/src/components/RelativeTime/index.js @@ -8,12 +8,15 @@ import { useIntl } from 'react-intl'; * Displays the relative time between a given timestamp and the current time. * You can display a custom message for given time intervals by passing an array of custom intervals. * - * @example Display "last hour" if the timestamp is less than an hour ago + * @example + * ```jsx + * Display "last hour" if the timestamp is less than an hour ago * { const { formatRelativeTime, formatDate, formatTime } = useIntl();