<MessageTimestamp>
: make timestamp
prop required
This commit is contained in:
parent
26100ea562
commit
a3b1b696db
2 changed files with 3 additions and 7 deletions
|
@ -41,7 +41,7 @@ const times = (): Array<[string, number]> => [
|
|||
|
||||
const createProps = (overrideProps: Partial<Props> = {}): Props => ({
|
||||
i18n,
|
||||
timestamp: overrideProps.timestamp,
|
||||
timestamp: overrideProps.timestamp || Date.now(),
|
||||
now: Date.now(),
|
||||
module: text('module', ''),
|
||||
withImageNoCaption: boolean('withImageNoCaption', false),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue