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)