Skip to content

Commit 8ef077b

Browse files
chore(layouts/Upgrade): remove unused components and imports
1 parent 601de3b commit 8ef077b

File tree

1 file changed

+0
-50
lines changed

1 file changed

+0
-50
lines changed

src/layouts/Upgrade.tsx

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ import type { ChildOnlyProp, Lang } from "@/lib/types"
1717
import type { MdPageContent, UpgradeFrontmatter } from "@/lib/interfaces"
1818

1919
import BeaconChainActions from "@/components/BeaconChainActions"
20-
import Breadcrumbs from "@/components/Breadcrumbs"
2120
import type { List as ButtonDropdownList } from "@/components/ButtonDropdown"
2221
import FeedbackCard from "@/components/FeedbackCard"
2322
import { ContentHero } from "@/components/Hero"
24-
import { Image } from "@/components/Image"
2523
import LeftNavBar from "@/components/LeftNavBar"
2624
import { BaseLink } from "@/components/Link"
2725
import {
@@ -32,7 +30,6 @@ import {
3230
} from "@/components/MdComponents"
3331
import MergeArticleList from "@/components/MergeArticleList"
3432
import MergeInfographic from "@/components/MergeInfographic"
35-
import OldHeading from "@/components/OldHeading"
3633
import UpgradeStatus from "@/components/UpgradeStatus"
3734

3835
import { getSummaryPoints } from "@/lib/utils/getSummaryPoints"
@@ -42,36 +39,12 @@ import { MAIN_CONTENT_ID } from "@/lib/constants"
4239

4340
const Page = (props: FlexProps) => <MdPage sx={{}} {...props} />
4441

45-
const Title = (props: ChildOnlyProp) => (
46-
<OldHeading
47-
as="h1"
48-
fontSize="2.5rem"
49-
fontWeight="bold"
50-
lineHeight={1.4}
51-
mt={0}
52-
{...props}
53-
/>
54-
)
55-
5642
type ContainerProps = Pick<BoxProps, "children" | "dir">
5743

5844
const Container = (props: ContainerProps) => (
5945
<Box position="relative" {...props} />
6046
)
6147

62-
const HeroContainer = (props: ChildOnlyProp) => (
63-
<Flex
64-
justify="flex-end"
65-
direction={{ base: "column-reverse", lg: "row" }}
66-
bg="cardGradient"
67-
boxShadow="inset 0px -1px 0px rgba(0, 0, 0, 0.1)"
68-
minH="608px"
69-
maxH={{ base: "full", lg: "608px" }}
70-
w="full"
71-
{...props}
72-
/>
73-
)
74-
7548
const MoreContent = (props: ChildOnlyProp & { to: string }) => (
7649
<Flex
7750
hideBelow="lg"
@@ -87,29 +60,6 @@ const MoreContent = (props: ChildOnlyProp & { to: string }) => (
8760
/>
8861
)
8962

90-
const TitleCard = (props: ChildOnlyProp) => {
91-
const cardBoxShadow = useToken("colors", "cardBoxShadow")
92-
93-
return (
94-
<Flex
95-
direction="column"
96-
justify="flex-start"
97-
position={{ base: "relative", lg: "absolute" }}
98-
bg={{ base: "ednBackground", lg: "background.base" }}
99-
border="1px"
100-
borderColor="border"
101-
borderRadius="sm"
102-
boxShadow={{ lg: cardBoxShadow }}
103-
maxW={{ base: "full", lg: "640px" }}
104-
p={8}
105-
top={{ lg: 24 }}
106-
insetInlineStart={{ lg: 24 }}
107-
zIndex={10}
108-
{...props}
109-
/>
110-
)
111-
}
112-
11363
const LastUpdated = (props: ChildOnlyProp) => (
11464
<Text
11565
color="text200"

0 commit comments

Comments
 (0)