ayush585 / ayush585/edgex

[Component] Extract LoginModal into reusable component

Open
#5 2 comments 0 reactions 1 assignee Claimed by @Sanmathi-Sedhupathi View on GitHub
frontend good first issue GSSoC 25 help wanted medium refractor
Dominant language
JavaScript
Stars
13
Forks
36
PR merge metrics
No merged PRs in 30d

Description

Currently, both MoodMirror and CareerCrack use similar but separate login/signup modals. This creates duplicate code that makes maintenance harder.

Let's follow the DRY (Don't Repeat Yourself) principle and:

✅ Your Task:
Create a shared LoginModal.jsx component
(put it inside src/components/common/ or a similar shared folder)

Move the current logic (Firebase Auth, input fields, toggle password, etc.) into that shared component

Replace the old modals in both MoodMirror and CareerCrack with this new reusable one

🔥 Important Notes:
Firebase Auth will still work in the new component
Just import it from your existing firebase.js setup:

js
Copy
Edit
import { auth } from '../../firebase';
Feel free to pass props if each app needs minor changes
(e.g. title="Welcome to MoodMirror")

🏁 Result:
Cleaner, reusable code that’s easier to update and extend for future features like OAuth or validation!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.