@@ -102,12 +102,11 @@ const TranslationLeaderboard: React.FC<IProps> = ({
102
102
updateFilterAmount ( 50 )
103
103
}
104
104
105
- const { getRootProps , getRadioProps } = useRadioGroup ( {
106
- name : "framework " ,
105
+ const { getRadioProps } = useRadioGroup ( {
106
+ name : "period selection " ,
107
107
defaultValue : "monthData" ,
108
108
onChange : updateDateRangeType ,
109
109
} )
110
- const group = getRootProps ( )
111
110
112
111
return (
113
112
< Box >
@@ -264,17 +263,44 @@ const TranslationLeaderboard: React.FC<IProps> = ({
264
263
flexDirection = { { base : "column" , lg : "inherit" } }
265
264
w = "full"
266
265
>
267
- < Option onClick = { filterAmount === 10 ? showMore : showLess } >
268
- < OptionText fontSize = { "18px" } >
266
+ < Flex
267
+ borderRadius = "2rem"
268
+ borderWidth = "1px"
269
+ borderStyle = "solid"
270
+ borderColor = "text"
271
+ color = "text"
272
+ alignItems = "center"
273
+ py = { 4 }
274
+ px = { 6 }
275
+ m = { 2 }
276
+ cursor = "pointer"
277
+ bg = "transparent"
278
+ w = { { base : "full" , lg : "initial" } }
279
+ justifyContent = "center"
280
+ ml = { { base : "0" , lg : "2" } }
281
+ mr = { { base : "0" , lg : "2" } }
282
+ _hover = { {
283
+ color : "primary" ,
284
+ borderColor : "primary" ,
285
+ } }
286
+ onClick = { filterAmount === 10 ? showMore : showLess }
287
+ >
288
+ < Text
289
+ as = "span"
290
+ fontSize = { { base : "md" , md : "lg" } }
291
+ lineHeight = "100%"
292
+ textAlign = "center"
293
+ fontWeight = { { base : "semibold" , md : "normal" } }
294
+ >
269
295
< Translation
270
296
id = {
271
297
filterAmount === 10
272
298
? "page-contributing-translation-program-acknowledgements-translation-leaderboard-show-more"
273
299
: "page-contributing-translation-program-acknowledgements-translation-leaderboard-show-less"
274
300
}
275
301
/>
276
- </ OptionText >
277
- </ Option >
302
+ </ Text >
303
+ </ Flex >
278
304
</ Flex >
279
305
</ Box >
280
306
)
0 commit comments