[Glitch] Remove shallow prop from Wrapper
Port aae9a5528a1677177a65891a058870f2e763e176 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
b6c53c1129
commit
c4cd2c955b
@ -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…
x
Reference in New Issue
Block a user