Skip to content

Commit ece0110

Browse files
authored
revert changes in Emoji.tsx
1 parent 0849293 commit ece0110

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/components/Emoji.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ import { Box, type BoxProps } from "@chakra-ui/react"
33

44
import { IS_DEV } from "@/lib/utils/env"
55

6-
export type EmojiProps = Omit<BoxProps, "children"> & BaseProps & {
7-
isFlag?: boolean;
8-
};
6+
export type EmojiProps = Omit<BoxProps, "children"> & BaseProps
97

10-
const Emoji = ({ isFlag, ...props}: EmojiProps) => (
8+
const Emoji = (props: EmojiProps) => (
119
<Box
1210
as={Twemoji}
1311
// The emoji lib is switching the protocol based on the existence of the
@@ -18,7 +16,7 @@ const Emoji = ({ isFlag, ...props}: EmojiProps) => (
1816
options={{ protocol: IS_DEV ? "http" : "https" }}
1917
svg
2018
display="inline-block"
21-
lineHeight={isFlag ? "" : "none"}
19+
lineHeight="none"
2220
sx={{
2321
"& > img": {
2422
margin: "0 !important",

0 commit comments

Comments
 (0)