Skip to content

Commit 6979c1d

Browse files
Merge pull request #100 from Aniket-2504/DevG_Contribute
Fixed email type in Singup Form and Navigation of AboutUs in Footer
2 parents fa9e926 + 7ec7e4b commit 6979c1d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/components/common/Footer.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ const Resources = [
2424
const Plans = ["Paid memberships", "For students", "Business solutions"];
2525
const Community = ["Forums", "Chapters", "Events"];
2626

27+
const handleClick = () => {
28+
window.scrollTo({ top: 0, behavior: 'smooth' });
29+
};
30+
2731
const Footer = () => {
2832
return (
2933
<div className="bg-richblack-800">
@@ -43,7 +47,8 @@ const Footer = () => {
4347
key={i}
4448
className="text-[14px] cursor-pointer hover:text-richblack-50 transition-all duration-200"
4549
>
46-
<Link to={ele.toLowerCase()}>{ele}</Link>
50+
<Link to={`/${ele.toLowerCase()}`} scroll={false}>
51+
<a onClick={handleClick}>{ele}</a></Link>
4752
</div>
4853
);
4954
})}

src/components/core/auth/SignupForm.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export default function SignupForm() {
115115
</p>
116116
<input
117117
required
118-
type="text"
118+
type="email"
119119
name="email"
120120
value={formData.email}
121121
onChange={changeHandler}

0 commit comments

Comments
 (0)