Skip to content

Commit 52169a8

Browse files
committed
remove optionContainer
1 parent e984ca0 commit 52169a8

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

src/components/TranslationLeaderboard.tsx

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { reverse, sortBy } from "lodash"
44

55
// Components
66
import Emoji from "./Emoji"
7-
import { Option, OptionContainer, OptionText } from "./SharedStyledComponents"
7+
import { Option, OptionText } from "./SharedStyledComponents"
88
import Translation from "./Translation"
99
import { Box, Flex, Img, Text, useColorModeValue } from "@chakra-ui/react"
1010

@@ -46,7 +46,14 @@ const TranslationLeaderboard: React.FC<IProps> = ({
4646

4747
return (
4848
<Box>
49-
<OptionContainer>
49+
<Flex
50+
justifyContent="center"
51+
py={0}
52+
px={8}
53+
mb={8}
54+
flexDirection={{ base: "column", lg: "inherit" }}
55+
w="full"
56+
>
5057
<Option
5158
onClick={() => updateDateRangeType("monthData")}
5259
isActive={dateRangeType === "monthData"}
@@ -71,7 +78,7 @@ const TranslationLeaderboard: React.FC<IProps> = ({
7178
<Translation id="page-contributing-translation-program-acknowledgements-translation-leaderboard-all-time-view" />
7279
</OptionText>
7380
</Option>
74-
</OptionContainer>
81+
</Flex>
7582
<Box bg="background" boxShadow={tableBoxShadow} w="full" mb={8}>
7683
<Flex
7784
bg="grayBackground"
@@ -193,7 +200,14 @@ const TranslationLeaderboard: React.FC<IProps> = ({
193200
)
194201
})}
195202
</Box>
196-
<OptionContainer>
203+
<Flex
204+
justifyContent="center"
205+
py={0}
206+
px={8}
207+
mb={8}
208+
flexDirection={{ base: "column", lg: "inherit" }}
209+
w="full"
210+
>
197211
<Option onClick={filterAmount === 10 ? showMore : showLess}>
198212
<OptionText fontSize={"18px"}>
199213
<Translation
@@ -205,7 +219,7 @@ const TranslationLeaderboard: React.FC<IProps> = ({
205219
/>
206220
</OptionText>
207221
</Option>
208-
</OptionContainer>
222+
</Flex>
209223
</Box>
210224
)
211225
}

0 commit comments

Comments
 (0)