Skip to content

Commit 645a86b

Browse files
committed
Allow date/number/string for Timestamp
1 parent 2a15009 commit 645a86b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/component/src/ActivityStatus/Timestamp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { hooks } from 'botframework-webchat-api';
22
import React, { memo } from 'react';
3-
import { object, pipe, readonly, string, type InferInput } from 'valibot';
3+
import { date, number, object, pipe, readonly, string, union, type InferInput } from 'valibot';
44

55
import parseProps from '../Utils/parseProps';
66
import AbsoluteTime from './AbsoluteTime';
@@ -10,7 +10,7 @@ const { useStyleOptions } = hooks;
1010

1111
const timestampPropsSchema = pipe(
1212
object({
13-
timestamp: string()
13+
timestamp: union([date(), number(), string()])
1414
}),
1515
readonly()
1616
);

0 commit comments

Comments
 (0)