1
1
// Libraries
2
2
import React , { useState } from "react"
3
- import styled from "@emotion/styled"
4
3
import { reverse , sortBy } from "lodash"
5
4
6
5
// Components
7
- import Emoji from "./OldEmoji "
6
+ import Emoji from "./Emoji "
8
7
import { Option , OptionContainer , OptionText } from "./SharedStyledComponents"
9
8
import Translation from "./Translation"
10
9
import { Box , Flex , Img , Text , useColorModeValue } from "@chakra-ui/react"
11
10
12
- const StyledEmoji = styled ( Emoji ) `
13
- display: block;
14
-
15
- @media (max-width: ${ ( props ) => props . theme . breakpoints . s } ) {
16
- display: none;
17
- }
18
- `
19
-
20
11
export interface IProps {
21
12
monthData : any
22
13
quarterData : any
@@ -160,7 +151,7 @@ const TranslationLeaderboard: React.FC<IProps> = ({
160
151
< Flex >
161
152
{ emoji ? (
162
153
< Box w = { 10 } >
163
- < Emoji mr = { "1rem" } size = { 2 } text = { emoji } />
154
+ < Emoji mr = { 4 } fontSize = "2rem" text = { emoji } />
164
155
</ Box >
165
156
) : (
166
157
< Box w = { 10 } opacity = "0.4" >
@@ -178,7 +169,7 @@ const TranslationLeaderboard: React.FC<IProps> = ({
178
169
h = { { base : "30px" , sm : 10 } }
179
170
w = { { base : "30px" , sm : 10 } }
180
171
borderRadius = "50%"
181
- display = { { base : "none" , sm : "block" } }
172
+ display = { { base : "none" , s : "block" } }
182
173
src = { user . avatarUrl }
183
174
/>
184
175
< Box maxW = { { base : "100px" , sm : "none" } } >
@@ -190,7 +181,12 @@ const TranslationLeaderboard: React.FC<IProps> = ({
190
181
</ Flex >
191
182
</ Flex >
192
183
< Flex minW = "20%" flexDirection = "row" alignItems = "left" >
193
- < StyledEmoji mr = { "0.5rem" } size = { 1.5 } text = { ":writing:" } />
184
+ < Emoji
185
+ display = { { base : "none" , sm : "block" } }
186
+ mr = { 2 }
187
+ fontSize = "2xl"
188
+ text = { ":writing:" }
189
+ />
194
190
{ user . totalCosts }
195
191
</ Flex >
196
192
</ Flex >
0 commit comments