Skip to content
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 SideNavMobile to Shadcn/Tailwind #14495

Conversation

ashiskumar-1999
Copy link
Contributor

@ashiskumar-1999 ashiskumar-1999 commented Dec 12, 2024

Description

Migrated the Chakra-UI imports to the Shadcn/Tailwind
#13946

Copy link

netlify bot commented Dec 12, 2024

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit c6b6260
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/677bf0c8c59127000835c827
😎 Deploy Preview https://deploy-preview-14495--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 46 (🔴 down 9 from production)
Accessibility: 92 (no change from production)
Best Practices: 89 (🔴 down 9 from production)
SEO: 98 (no change from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@pettinarip pettinarip mentioned this pull request Dec 26, 2024
41 tasks
Copy link

gitguardian bot commented Dec 30, 2024

️✅ 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.
While these secrets were previously flagged, we no longer have a reference to the
specific commits where they were detected. Once a secret has been leaked into a git
repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 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.

@@ -2,7 +2,7 @@ import React, { useState } from "react"
import { AnimatePresence, motion } from "framer-motion"
import { useTranslation } from "next-i18next"
import { MdChevronRight } from "react-icons/md"
import { Box, Center, HStack, Icon } from "@chakra-ui/react"
import { Box } from "@chakra-ui/react"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the chakra imports need to be migrated

Copy link
Contributor Author

@ashiskumar-1999 ashiskumar-1999 Dec 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There isn't any particular Box component in the /ui/flex.tsx file, so I was confused about migrating this component. Should we use Flex to migrate the Box imports?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! got it. A Box in chakra is going to render a simple div element.

// So, if you have
<Box mt={4}>

// should be migrated to
<div className="mt-4">

in cases where we are using motion

<Box as={motion.div}>

// should be migrated to
<motion.div>

Copy link
Contributor Author

@ashiskumar-1999 ashiskumar-1999 Dec 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand, I'll migrate those imports accordingly.

Additionally, I think it would be better to update the instructions to include this approach. This way, anyone needing to migrate the Box component in the future can follow the same process we discussed.

Copy link
Member

@pettinarip pettinarip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool @ashiskumar-1999. There are a few more things to polish to finish this. I'll push some color adjustments.

src/components/SideNavMobile.tsx Outdated Show resolved Hide resolved
src/components/SideNavMobile.tsx Outdated Show resolved Hide resolved
src/components/SideNavMobile.tsx Outdated Show resolved Hide resolved
src/components/SideNavMobile.tsx Outdated Show resolved Hide resolved
src/components/SideNavMobile.tsx Outdated Show resolved Hide resolved
.env.example Outdated Show resolved Hide resolved
@pettinarip pettinarip merged commit 5821b37 into ethereum:dev Jan 7, 2025
10 checks passed
This was referenced Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants