-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Migrate SideNav to Shadcn/Tailwind #14508
base: dev
Are you sure you want to change the base?
feat: Migrate SideNav to Shadcn/Tailwind #14508
Conversation
❌ Deploy Preview for ethereumorg failed.
|
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
src/components/SideNav.tsx
Outdated
@@ -2,7 +2,7 @@ import { useEffect, useState } from "react" | |||
import { motion } from "framer-motion" | |||
import { useTranslation } from "next-i18next" | |||
import { MdChevronRight } from "react-icons/md" | |||
import { Box, HStack, Icon } from "@chakra-ui/react" | |||
import { Box } from "@chakra-ui/react" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be migrated too.
…to-Shadcn/Tailwind
…to-Shadcn/Tailwind
…to-Shadcn/Tailwind
src/components/SideNav.tsx
Outdated
ps={8} | ||
_hover={{ bgColor: "ednBackground" }} | ||
> | ||
<HStack className="w-full justify-between py-2 pe-4 ps-8 hover:bg-[ednBackground]"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<HStack className="w-full justify-between py-2 pe-4 ps-8 hover:bg-[ednBackground]"> | |
<HStack className="w-full justify-between py-2 pe-4 ps-8 hover:bg-background-highlight"> |
src/components/SideNav.tsx
Outdated
> | ||
<Icon as={MdChevronRight} boxSize={6} color="secondary" /> | ||
</Box> | ||
<MdChevronRight className="h-6 w-6" color="secondary" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<MdChevronRight className="h-6 w-6" color="secondary" /> | |
<MdChevronRight className="h-6 w-6" color="secondary" /> |
<MdChevronRight className="h-6 w-6" color="secondary" /> | |
<MdChevronRight className="h-6 w-6 text-body-medium" /> |
src/components/SideNav.tsx
Outdated
borderInlineEndColor="border" | ||
display={{ base: "none", lg: "block" }} | ||
<nav | ||
className="sticky top-[4.75rem] pt-8 pb-16 h-[calc(100vh - 80px)] w-[calc((100% - 1448px) / 2 + 256px)] min-w-256 overflow-y-auto transition-transform duration-200 ease bg-[background.base] shadow-[1px_0px_0px_rgba(0,0,0,0.1)] border-e border-e-border lg:block" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
className="sticky top-[4.75rem] pt-8 pb-16 h-[calc(100vh - 80px)] w-[calc((100% - 1448px) / 2 + 256px)] min-w-256 overflow-y-auto transition-transform duration-200 ease bg-[background.base] shadow-[1px_0px_0px_rgba(0,0,0,0.1)] border-e border-e-border lg:block" | |
className="sticky top-[4.75rem] pt-8 pb-16 h-[calc(100vh - 80px)] w-[calc((100% - 1448px) / 2 + 256px)] min-w-256 overflow-y-auto transition-transform duration-200 ease bg-background shadow-[1px_0px_0px_rgba(0,0,0,0.1)] border-e border-e-border lg:block" |
…to-Shadcn/Tailwind
This reverts commit 209711e.
Description
Migrated the necessary chakra-UI imports to Shadcn/TailwindCSS.
#13946