Update eslint to 8.27.0
This commit is contained in:
parent
c8fb43a846
commit
98ef4c627a
499 changed files with 8995 additions and 8494 deletions
|
@ -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}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue