mirror of
https://github.com/mastodon/mastodon.git
synced 2025-10-05 00:22:42 +00:00
Remove shallow prop from Wrapper (#36275)
This commit is contained in:
parent
a44a3f6d40
commit
aae9a5528a
|
@ -51,7 +51,14 @@ export const EmojiHTML = <Element extends ElementType>(
|
||||||
if (isModernEmojiEnabled()) {
|
if (isModernEmojiEnabled()) {
|
||||||
return <ModernEmojiHTML {...props} />;
|
return <ModernEmojiHTML {...props} />;
|
||||||
}
|
}
|
||||||
const { as: asElement, htmlString, extraEmojis, className, ...rest } = props;
|
const {
|
||||||
|
as: asElement,
|
||||||
|
htmlString,
|
||||||
|
extraEmojis,
|
||||||
|
className,
|
||||||
|
shallow: _,
|
||||||
|
...rest
|
||||||
|
} = props;
|
||||||
const Wrapper = asElement ?? 'div';
|
const Wrapper = asElement ?? 'div';
|
||||||
return (
|
return (
|
||||||
<Wrapper
|
<Wrapper
|
||||||
|
|
Loading…
Reference in New Issue
Block a user