Skip to content

Commit

Permalink
Resolve comments to make image optional and add type to twemoji
Browse files Browse the repository at this point in the history
  • Loading branch information
byhow committed Jun 7, 2022
1 parent 448293a commit ff1622e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Callout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const Content = styled.div`
`

interface IProps {
image: string
image?: string
emoji?: string
alt?: string
titleKey: TranslationKey
Expand Down
4 changes: 1 addition & 3 deletions src/components/Emoji.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ interface IProp extends MarginProps {
text: string
}

// const StyledTweomoji: React.FC<Twemoji>

const StyledEmoji = styled(Twemoji)`
const StyledEmoji = styled(Twemoji)<{ size: number }>`
& > img {
width: ${(props) => props.size}em !important;
height: ${(props) => props.size}em !important;
Expand Down

0 comments on commit ff1622e

Please sign in to comment.