Skip to content

Commit

Permalink
Updated route of SIH page
Browse files Browse the repository at this point in the history
Signed-off-by: Akash <[email protected]>
  • Loading branch information
SkySingh04 committed Aug 16, 2024
1 parent f81a3ed commit e9a34b1
Show file tree
Hide file tree
Showing 3 changed files with 702 additions and 632 deletions.
6 changes: 3 additions & 3 deletions app/(default)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function Home() {
<div className="text-4xl font-bold text-center text-gray-200 mb-4">
Upcoming Events
</div>
<Link href="/form">
<Link href="/sihregistration">
<Image
src={"/images/sih.png"}
alt="sih"
Expand All @@ -27,8 +27,8 @@ export default function Home() {
className="rounded-3xl border-2 border-slate-500"
/>
</Link>
<Link href="/form">
<button className="btn-sm text-xl text-black bg-green-500 mx-3 rounded-xl mt-5">
<Link href="/sihregistration">
<button className="btn-sm text-xl text-black bg-green-500 mx-3 rounded-xl mt-10">
Register for SIH
</button>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion components/forms/sihForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const SIHMultiStepForm: React.FC = () => {
} = useForm({
defaultValues: formData,
});
const onSubmit: SubmitHandler<any> = async (data) => {
const onSubmit: SubmitHandler<any> = async (data : any) => {
setFormData({ ...formData, ...data });
if (step < 3) {
setStep(step + 1);
Expand Down
Loading

0 comments on commit e9a34b1

Please sign in to comment.