Migrate conversations to ESLint
This commit is contained in:
parent
b4f0f3c685
commit
372aa44e49
90 changed files with 1261 additions and 1165 deletions
|
@ -15,12 +15,10 @@ import {
|
|||
MIMEType,
|
||||
VIDEO_MP4,
|
||||
} from '../../types/MIME';
|
||||
|
||||
// @ts-ignore
|
||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
||||
// @ts-ignore
|
||||
import enMessages from '../../../_locales/en/messages.json';
|
||||
import { pngUrl } from '../../storybook/Fixtures';
|
||||
|
||||
const i18n = setupI18n('en', enMessages);
|
||||
|
||||
const story = storiesOf('Components/Conversation/Message', module);
|
||||
|
@ -75,7 +73,7 @@ const createProps = (overrideProps: Partial<Props> = {}): Props => ({
|
|||
previews: overrideProps.previews || [],
|
||||
reactions: overrideProps.reactions,
|
||||
reactToMessage: action('reactToMessage'),
|
||||
renderEmojiPicker: renderEmojiPicker,
|
||||
renderEmojiPicker,
|
||||
replyToMessage: action('replyToMessage'),
|
||||
retrySend: action('retrySend'),
|
||||
scrollToQuotedMessage: action('scrollToQuotedMessage'),
|
||||
|
@ -195,7 +193,6 @@ story.add('Older', () => {
|
|||
return renderBothDirections(props);
|
||||
});
|
||||
|
||||
// tslint:disable-next-line:max-func-body-length
|
||||
story.add('Reactions', () => {
|
||||
const props = createProps({
|
||||
text: 'Hello there from a pal!',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue