mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-16 01:09:55 +00:00
[Glitch] Remove shallow prop from Wrapper
Port aae9a5528a to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user