Skip to content

Commit

Permalink
remove chakra divider imports
Browse files Browse the repository at this point in the history
  • Loading branch information
corwintines committed Sep 18, 2024
1 parent 0107f61 commit 1260c45
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 29 deletions.
2 changes: 0 additions & 2 deletions src/@chakra-ui/components/components.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const {
Checkbox: checkboxDefaultTheme,
CloseButton: closeButtonDefaultTheme,
Code: codeDefaultTheme,
Divider: dividerDefaultTheme,
Drawer: drawerDefaultTheme,
Form: formDefaultTheme,
FormLabel: formLabelDefaultTheme,
Expand Down Expand Up @@ -37,7 +36,6 @@ export {
checkboxDefaultTheme,
closeButtonDefaultTheme,
codeDefaultTheme,
dividerDefaultTheme,
drawerDefaultTheme,
formDefaultTheme,
formLabelDefaultTheme,
Expand Down
2 changes: 0 additions & 2 deletions src/@chakra-ui/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { Checkbox } from "./Checkbox"
import {
closeButtonDefaultTheme,
codeDefaultTheme,
dividerDefaultTheme,
drawerDefaultTheme,
formDefaultTheme,
formLabelDefaultTheme,
Expand Down Expand Up @@ -39,7 +38,6 @@ export default {
Checkbox,
CloseButton: closeButtonDefaultTheme,
Code: codeDefaultTheme,
Divider: dividerDefaultTheme,
Drawer: drawerDefaultTheme,
Form: formDefaultTheme,
FormLabel: formLabelDefaultTheme,
Expand Down
13 changes: 2 additions & 11 deletions src/layouts/Tutorial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
Badge,
Box,
type BoxProps,
Divider,
Flex,
Kbd,
Text,
Expand Down Expand Up @@ -35,6 +34,7 @@ import {
import TableOfContents from "@/components/TableOfContents"
import TooltipLink from "@/components/TooltipLink"
import TutorialMetadata from "@/components/TutorialMetadata"
import { Divider } from "@/components/ui/divider"
import { mdxTableComponents } from "@/components/ui/Table"
import YouTube from "@/components/YouTube"

Expand Down Expand Up @@ -93,16 +93,7 @@ const Heading4 = (props: HTMLAttributes<HTMLHeadingElement>) => (
/>
)

const StyledDivider = (props) => (
<Divider
my={16}
w="10%"
h="1"
opacity="1"
backgroundColor="homeDivider"
{...props}
/>
)
const StyledDivider = (props) => <Divider {...props} />

const Paragraph = (props: TextProps) => (
<Text as="p" mt={8} mb={4} mx={0} color="text300" fontSize="md" {...props} />
Expand Down
19 changes: 5 additions & 14 deletions src/pages/roadmap/vision.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { serverSideTranslations } from "next-i18next/serverSideTranslations"
import type { ComponentPropsWithRef } from "react"
import {
Box,
Divider,
Flex,
type FlexProps,
Heading,
Expand All @@ -32,6 +31,7 @@ import PageHero, {
} from "@/components/PageHero"
import PageMetadata from "@/components/PageMetadata"
import Trilemma from "@/components/Trilemma"
import { Divider } from "@/components/ui/divider"

import { existsNamespace } from "@/lib/utils/existsNamespace"
import { getLastDeployDate } from "@/lib/utils/getLastDeployDate"
Expand All @@ -50,15 +50,6 @@ const Page = (props: ChildOnlyProp) => (
/>
)

const PageDivider = () => (
<Divider
my={16}
w="10%"
borderBottomWidth="0.25rem"
borderColor="homeDivider"
/>
)

const PageContent = (props: ChildOnlyProp) => (
<Flex flexDirection="column" gap="8" py={4} px={8} w="full" {...props} />
)
Expand Down Expand Up @@ -169,7 +160,7 @@ const VisionPage = () => {
description={t("page-roadmap-vision-meta-desc")}
/>
<PageHero content={heroContent} />
<PageDivider />
<Divider />
<PageContent>
<Breadcrumbs slug={pathname} startDepth={1} />
<CentralContent>
Expand Down Expand Up @@ -208,7 +199,7 @@ const VisionPage = () => {
<Text>{t("page-roadmap-vision-upgrade-needs-desc-6")}</Text>
</CentralContent>
</PageContent>
<PageDivider />
<Divider />
<PageContent>
<CenterH2>{t("page-roadmap-vision-problems")}</CenterH2>
<ProblemCardContainer>
Expand All @@ -225,7 +216,7 @@ const VisionPage = () => {
<TrilemmaContent>
<Trilemma />
</TrilemmaContent>
<PageDivider />
<Divider />
<PageContent>
<CentralContent>
<CenterH2>{t("page-roadmap-vision-understanding")}</CenterH2>
Expand Down Expand Up @@ -292,7 +283,7 @@ const VisionPage = () => {
</InfoBanner>
</CentralContent>
</PageContent>
<PageDivider />
<Divider />
<FeedbackCard />
</Page>
)
Expand Down

0 comments on commit 1260c45

Please sign in to comment.