mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Remove shallow prop from Wrapper (#36275)
This commit is contained in:
parent
a44a3f6d40
commit
aae9a5528a
1 changed files with 8 additions and 1 deletions
|
|
@ -51,7 +51,14 @@ export const EmojiHTML = <Element extends ElementType>(
|
|||
if (isModernEmojiEnabled()) {
|
||||
return <ModernEmojiHTML {...props} />;
|
||||
}
|
||||
const { as: asElement, htmlString, extraEmojis, className, ...rest } = props;
|
||||
const {
|
||||
as: asElement,
|
||||
htmlString,
|
||||
extraEmojis,
|
||||
className,
|
||||
shallow: _,
|
||||
...rest
|
||||
} = props;
|
||||
const Wrapper = asElement ?? 'div';
|
||||
return (
|
||||
<Wrapper
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue