File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,9 @@ import { Box, type BoxProps } from "@chakra-ui/react"
3
3
4
4
import { IS_DEV } from "@/lib/utils/env"
5
5
6
- export type EmojiProps = Omit < BoxProps , "children" > & BaseProps & {
7
- isFlag ?: boolean ;
8
- } ;
6
+ export type EmojiProps = Omit < BoxProps , "children" > & BaseProps
9
7
10
- const Emoji = ( { isFlag , ... props } : EmojiProps ) => (
8
+ const Emoji = ( props : EmojiProps ) => (
11
9
< Box
12
10
as = { Twemoji }
13
11
// The emoji lib is switching the protocol based on the existence of the
@@ -18,7 +16,7 @@ const Emoji = ({ isFlag, ...props}: EmojiProps) => (
18
16
options = { { protocol : IS_DEV ? "http" : "https" } }
19
17
svg
20
18
display = "inline-block"
21
- lineHeight = { isFlag ? "" : " none"}
19
+ lineHeight = " none"
22
20
sx = { {
23
21
"& > img" : {
24
22
margin : "0 !important" ,
You can’t perform that action at this time.
0 commit comments