Skip to content

Commit

Permalink
docs(changeset): Fix empji missing export
Browse files Browse the repository at this point in the history
  • Loading branch information
apuntovanini committed Nov 26, 2024
1 parent 4b56a88 commit be24a45
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/bright-trainers-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@uidu/editor-common': minor
---

Fix empji missing export
17 changes: 17 additions & 0 deletions packages/editor/editor-common/src/ui/Emoji/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React, { PureComponent } from 'react';

export interface EmojiProps {
allowTextFallback?: boolean;
fitToHeight?: number;
}
export default class EmojiNode extends PureComponent<EmojiProps, {}> {
render() {
const { allowTextFallback, shortName, id, fallback, fitToHeight } =
this.props;
return <em-emoji shortcodes={shortName} size="1rem" />;

if (allowTextFallback) {
return <span>{fallback || shortName}</span>;
}
}
}

0 comments on commit be24a45

Please sign in to comment.