Update eslint to 8.27.0

This commit is contained in:
Fedor Indutny 2022-11-17 16:45:19 -08:00 committed by GitHub
parent c8fb43a846
commit 98ef4c627a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
499 changed files with 8995 additions and 8494 deletions

View file

@ -35,39 +35,41 @@ const getDefaultProps = (): PropsType => ({
recentStickers: [Stickers.wide, Stickers.tall, Stickers.abe],
});
export const ExtraLarge = (): JSX.Element => (
<MediaEditor {...getDefaultProps()} />
);
export function ExtraLarge(): JSX.Element {
return <MediaEditor {...getDefaultProps()} />;
}
export const Large = (): JSX.Element => (
<MediaEditor {...getDefaultProps()} imageSrc={IMAGE_1} />
);
export function Large(): JSX.Element {
return <MediaEditor {...getDefaultProps()} imageSrc={IMAGE_1} />;
}
export const Smol = (): JSX.Element => (
<MediaEditor {...getDefaultProps()} imageSrc={IMAGE_3} />
);
export function Smol(): JSX.Element {
return <MediaEditor {...getDefaultProps()} imageSrc={IMAGE_3} />;
}
export const Portrait = (): JSX.Element => (
<MediaEditor {...getDefaultProps()} imageSrc={IMAGE_4} />
);
export function Portrait(): JSX.Element {
return <MediaEditor {...getDefaultProps()} imageSrc={IMAGE_4} />;
}
export const Sending = (): JSX.Element => (
<MediaEditor {...getDefaultProps()} isSending />
);
export function Sending(): JSX.Element {
return <MediaEditor {...getDefaultProps()} isSending />;
}
export const WithCaption = (): JSX.Element => (
<MediaEditor
{...getDefaultProps()}
supportsCaption
renderCompositionTextArea={props => (
<CompositionTextArea
{...props}
i18n={i18n}
onPickEmoji={action('onPickEmoji')}
onSetSkinTone={action('onSetSkinTone')}
onTextTooLong={action('onTextTooLong')}
getPreferredBadge={() => undefined}
/>
)}
/>
);
export function WithCaption(): JSX.Element {
return (
<MediaEditor
{...getDefaultProps()}
supportsCaption
renderCompositionTextArea={props => (
<CompositionTextArea
{...props}
i18n={i18n}
onPickEmoji={action('onPickEmoji')}
onSetSkinTone={action('onSetSkinTone')}
onTextTooLong={action('onTextTooLong')}
getPreferredBadge={() => undefined}
/>
)}
/>
);
}