-
Notifications
You must be signed in to change notification settings - Fork 57
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
Make the "Become a Mentor" button responsive. #72
Conversation
}; | ||
|
||
const handleMentorRegistration = (): void => { | ||
console.log('Clicked'); |
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.
console.log('Clicked'); |
@@ -18,6 +24,11 @@ interface MenuDrawerProps { | |||
} | |||
|
|||
const MenuDrawer: React.FC<MenuDrawerProps> = ({ openMenu, setOpenMenu }) => { | |||
const [isLoginModalVisible, setIsLoginModalVisible] = useState(false); |
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.
We don't need it use openMenu, setOpenMenu
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.
Screencast_20240114_003851.webm
Fixed that issue :)
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.
Good job! @mayura-andrew
Purpose
The purpose of this PR is to fix #71
Purpose
The purpose of this PR is to make the "Become a Mentor" button responsive.
Goals
This PR makes the "Become a Mentor" button responsive using Tailwind CSS. It also attempts to fix an issue where the application does not navigate to the
/mentor-registration
route when the button is clicked in mobile view.Approach
I updated the
handleMentorRegistration
function in theMenuDrawer.tsx
file to navigate to the/mentor-registration
route when the "Become a Mentor" button is clicked. However, this does not seem to be working as expected on mobile devices. I would appreciate if someone could look into this.Screenshots
Screencast_20240113_161026.webm
Checklist
Related PRs
N/A
Test environment
OS - Fedora Linux 39 (KDE Plasma) x86_64
NodeJS - 20.10.0
Learning
I learned about the importance of making UI elements responsive to ensure a good user experience on all devices. I also learned about the
navigate
function and how it can be used to programmatically navigate to different routes in a React application.