Skip to content

Commit 3025455

Browse files
refactor(layouts/Upgrade): remove the MoreContent link
1 parent 8ef077b commit 3025455

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/layouts/Upgrade.tsx

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
import { useRouter } from "next/router"
22
import { useTranslation } from "next-i18next"
3-
import { MdExpandMore } from "react-icons/md"
43
import {
54
Box,
65
type BoxProps,
7-
Flex,
86
type FlexProps,
9-
Icon,
107
List,
118
ListItem,
129
Text,
@@ -21,7 +18,6 @@ import type { List as ButtonDropdownList } from "@/components/ButtonDropdown"
2118
import FeedbackCard from "@/components/FeedbackCard"
2219
import { ContentHero } from "@/components/Hero"
2320
import LeftNavBar from "@/components/LeftNavBar"
24-
import { BaseLink } from "@/components/Link"
2521
import {
2622
ContentContainer,
2723
MobileButton,
@@ -35,8 +31,6 @@ import UpgradeStatus from "@/components/UpgradeStatus"
3531
import { getSummaryPoints } from "@/lib/utils/getSummaryPoints"
3632
import { getLocaleTimestamp } from "@/lib/utils/time"
3733

38-
import { MAIN_CONTENT_ID } from "@/lib/constants"
39-
4034
const Page = (props: FlexProps) => <MdPage sx={{}} {...props} />
4135

4236
type ContainerProps = Pick<BoxProps, "children" | "dir">
@@ -45,21 +39,6 @@ const Container = (props: ContainerProps) => (
4539
<Box position="relative" {...props} />
4640
)
4741

48-
const MoreContent = (props: ChildOnlyProp & { to: string }) => (
49-
<Flex
50-
hideBelow="lg"
51-
as={BaseLink}
52-
bg="ednBackground"
53-
justify="center"
54-
p={4}
55-
w="full"
56-
_hover={{
57-
bg: "background.base",
58-
}}
59-
{...props}
60-
/>
61-
)
62-
6342
const LastUpdated = (props: ChildOnlyProp) => (
6443
<Text
6544
color="text200"
@@ -152,9 +131,6 @@ export const UpgradeLayout = ({
152131
heroImg={frontmatter.image}
153132
blurDataURL={frontmatter.blurDataURL}
154133
/>
155-
<MoreContent to={"#" + MAIN_CONTENT_ID}>
156-
<Icon as={MdExpandMore} fontSize="2xl" color="secondary" />
157-
</MoreContent>
158134
<Page>
159135
{/* TODO: Switch to `above="lg"` after completion of Chakra Migration */}
160136
<LeftNavBar

0 commit comments

Comments
 (0)