Skip to content

Commit b4f81a8

Browse files
committed
feat: auth integration
1 parent 592f6bd commit b4f81a8

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

app/layout.config.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -511,9 +511,9 @@ export const baseOptions: BaseLayoutProps = {
511511
github,
512512
userMenu,
513513
ambassadorMenu,
514-
{
515-
type: "custom",
516-
children: <AuthButton />,
517-
},
514+
// {
515+
// type: "custom",
516+
// children: <AuthButton />,
517+
// },
518518
],
519519
};

components/ambassador-dao/How-it-works.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
'use client';
2-
3-
import React, { useState } from 'react';
4-
import { ListChecks } from 'lucide-react';
5-
import { AuthModal } from './sections/auth-modal';
1+
"use client";
62

3+
import React, { useState } from "react";
4+
import { ListChecks } from "lucide-react";
5+
import { AuthModal } from "./sections/auth-modal";
6+
import { useRouter } from "next/navigation";
77
interface Step {
88
number: number;
99
title: string;
@@ -16,9 +16,8 @@ interface HowItWorksProps {
1616
}
1717

1818
const HowItWorks: React.FC<HowItWorksProps> = ({ steps }) => {
19-
20-
const [openAuthModal, setOpenAuthModal] = useState(false);
21-
19+
const [openAuthModal, setOpenAuthModal] = useState(false);
20+
const router = useRouter();
2221

2322
return (
2423
<div className="dark:bg-black bg-white text-[var(--white-text-color)] py-8">
@@ -59,7 +58,7 @@ const [openAuthModal, setOpenAuthModal] = useState(false);
5958
className={`${
6059
step.number === 1 ? "cursor-pointer" : ""
6160
} rounded-lg py-6 px-2 min-h-[80px] flex items-center text-wrap`}
62-
onClick={() => step.number === 1 && setOpenAuthModal(true)}
61+
onClick={() => step.number === 1 && router.push("/login")}
6362
>
6463
<h3 className="text-base font-medium dark:text-white text-black">
6564
{step.title}
@@ -83,4 +82,4 @@ const [openAuthModal, setOpenAuthModal] = useState(false);
8382
);
8483
};
8584

86-
export default HowItWorks;
85+
export default HowItWorks;

toolbox/src/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"avaplatform/avalanchego": "v1.13.4",
3-
"avaplatform/subnet-evm_avalanchego": "v0.7.8_v1.13.4",
3+
"avaplatform/subnet-evm_avalanchego": "v0.7.9_v1.13.5",
44
"avaplatform/icm-relayer": "v1.6.6"
55
}

0 commit comments

Comments
 (0)