Skip to content

Commit

Permalink
FullDate: added props description|
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytroshch committed Jan 17, 2022
1 parent e3e633d commit 8ac8c5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions packages/core/src/components/format/FullDate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 8ac8c5f

Please sign in to comment.