Migrate Message to Storybook
This commit is contained in:
parent
0051253125
commit
b9c5e7bf1d
4 changed files with 599 additions and 6067 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -61,6 +61,15 @@ interface LinkPreviewType {
|
|||
image?: AttachmentType;
|
||||
}
|
||||
|
||||
export const Statuses = [
|
||||
'delivered',
|
||||
'error',
|
||||
'partial-sent',
|
||||
'read',
|
||||
'sending',
|
||||
'sent',
|
||||
] as const;
|
||||
|
||||
export type PropsData = {
|
||||
id: string;
|
||||
conversationId: string;
|
||||
|
@ -72,7 +81,7 @@ export type PropsData = {
|
|||
interactionMode: 'mouse' | 'keyboard';
|
||||
direction: 'incoming' | 'outgoing';
|
||||
timestamp: number;
|
||||
status?: 'sending' | 'sent' | 'delivered' | 'read' | 'error' | 'partial-sent';
|
||||
status?: typeof Statuses[number];
|
||||
contact?: ContactType;
|
||||
authorTitle: string;
|
||||
authorName?: string;
|
||||
|
|
|
@ -11464,7 +11464,7 @@
|
|||
"rule": "React-createRef",
|
||||
"path": "ts/components/conversation/Message.js",
|
||||
"line": " this.audioRef = react_1.default.createRef();",
|
||||
"lineNumber": 46,
|
||||
"lineNumber": 54,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2020-01-21T15:46:51.245Z"
|
||||
},
|
||||
|
@ -11472,7 +11472,7 @@
|
|||
"rule": "React-createRef",
|
||||
"path": "ts/components/conversation/Message.js",
|
||||
"line": " this.reactionsContainerRef = react_1.default.createRef();",
|
||||
"lineNumber": 48,
|
||||
"lineNumber": 56,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2020-01-21T15:46:51.245Z",
|
||||
"reasonDetail": "Used for detecting clicks outside reaction viewer"
|
||||
|
@ -11481,7 +11481,7 @@
|
|||
"rule": "React-createRef",
|
||||
"path": "ts/components/conversation/Message.tsx",
|
||||
"line": " public audioRef: React.RefObject<HTMLAudioElement> = React.createRef();",
|
||||
"lineNumber": 186,
|
||||
"lineNumber": 195,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2020-05-21T16:56:07.875Z"
|
||||
},
|
||||
|
@ -11489,7 +11489,7 @@
|
|||
"rule": "React-createRef",
|
||||
"path": "ts/components/conversation/Message.tsx",
|
||||
"line": " > = React.createRef();",
|
||||
"lineNumber": 190,
|
||||
"lineNumber": 199,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2020-05-21T16:56:07.875Z"
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue