diff --git a/src/layouts/Static.tsx b/src/layouts/Static.tsx index b111623d0be..5f13e30e780 100644 --- a/src/layouts/Static.tsx +++ b/src/layouts/Static.tsx @@ -1,5 +1,5 @@ import { useRouter } from "next/router" -import { Box, Flex, type HeadingProps, Icon } from "@chakra-ui/react" +import { type HeadingProps } from "@chakra-ui/react" import type { ChildOnlyProp, Lang } from "@/lib/types" import type { MdPageContent, StaticFrontmatter } from "@/lib/interfaces" @@ -14,7 +14,6 @@ import GlossaryDefinition from "@/components/Glossary/GlossaryDefinition" import GlossaryTooltip from "@/components/Glossary/GlossaryTooltip" import { HubHero } from "@/components/Hero" import NetworkUpgradeSummary from "@/components/History/NetworkUpgradeSummary" -import Link from "@/components/Link" import Logo from "@/components/Logo" import MainArticle from "@/components/MainArticle" import MatomoOptOut from "@/components/MatomoOptOut" @@ -25,12 +24,13 @@ import { Heading4 as MdHeading4, } from "@/components/MdComponents" import MeetupList from "@/components/MeetupList" -import Text from "@/components/OldText" import SocialListItem from "@/components/SocialListItem" import TableOfContents from "@/components/TableOfContents" import { TranslatathonBanner } from "@/components/Translatathon/TranslatathonBanner" import Translation from "@/components/Translation" import TranslationChartImage from "@/components/TranslationChartImage" +import { Flex, Stack } from "@/components/ui/flex" +import Link from "@/components/ui/Link" import UpcomingEventsList from "@/components/UpcomingEventsList" import { getEditPath } from "@/lib/utils/editPath" @@ -62,7 +62,6 @@ export const staticComponents = { EnergyConsumptionChart, GlossaryDefinition, GlossaryTooltip, - Icon, Link, Logo, MatomoOptOut, @@ -93,19 +92,14 @@ export const StaticLayout = ({ const absoluteEditPath = getEditPath(slug) return ( - +
- +
{slug === "/guides/" ? ( ) : ( - <> - + + - :{" "} {lastEditLocaleTimestamp} - - +

+
)} - + - - + +
- +
) }