Skip to content

Commit ee5cf7f

Browse files
authored
Merge pull request #63 from asynchronous-dev/bug/timepicker-type-name-change
change time_picker to timepicker
2 parents 9fe69cf + 4b2ae8b commit ee5cf7f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-chat-renderer",
3-
"version": "0.6.2",
3+
"version": "0.6.3",
44
"license": "MIT",
55
"scripts": {
66
"postversion": "npm publish",

src/__tests__/__snapshots__/renderer.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ Object {
446446
"text": "placeholder text",
447447
"type": "plain_text",
448448
},
449-
"type": "time_picker",
449+
"type": "timepicker",
450450
}
451451
`;
452452

src/components/TimePicker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export interface TimePickerSpec {
55
initial_time?: string;
66
placeholder: PlainTextElement;
77
action_id: string;
8-
type: 'time_picker';
8+
type: 'timepicker';
99
}
1010

1111
export interface TimePickerElementProps {
@@ -19,7 +19,7 @@ export const TimePickerElement: FC<TimePickerElementProps, TimePickerSpec> = ({
1919
actionId,
2020
placeholder,
2121
}) => ({
22-
type: 'time_picker',
22+
type: 'timepicker',
2323
action_id: actionId,
2424
initial_time: initialTime,
2525
placeholder,

0 commit comments

Comments
 (0)