From 8ac8c5fcb3e6d2bfc983ed8dba10b740c436c0e5 Mon Sep 17 00:00:00 2001 From: Dmytro Shcherbonos Date: Mon, 17 Jan 2022 19:46:06 +0200 Subject: [PATCH] FullDate: added props description| --- packages/core/src/components/format/FullDate.js | 9 +++++++++ .../src/components/format/stories/FullDate.stories.js | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/core/src/components/format/FullDate.js b/packages/core/src/components/format/FullDate.js index 3b520f0f..25eaa13a 100644 --- a/packages/core/src/components/format/FullDate.js +++ b/packages/core/src/components/format/FullDate.js @@ -21,8 +21,17 @@ const FullDate = (props) => { } FullDate.propTypes = { + /** + * Timestamp in sec. Using if mts prop isn't exist + */ ts: PropTypes.number, + /** + * Timestamp in ms + */ mts: PropTypes.number, + /** + * Styles object of FullDate container + */ // eslint-disable-next-line react/forbid-prop-types style: PropTypes.object, } diff --git a/packages/core/src/components/format/stories/FullDate.stories.js b/packages/core/src/components/format/stories/FullDate.stories.js index f7896962..23b7d2bb 100644 --- a/packages/core/src/components/format/stories/FullDate.stories.js +++ b/packages/core/src/components/format/stories/FullDate.stories.js @@ -4,7 +4,7 @@ import FullDate from '../FullDate' export default getDefaultMetadata(FullDate, 'Components/format/FullDate') const props = { - ts: 1580286340520, // Monday, October 21, 2019 8:35:40 PM GMT+05:30 + ts: 1580286340520, // Monday, Jan 29, 2021 15:25:40 GMT+0700 } export const basic = showTemplateStory(FullDate, props)