diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..6f3a2913e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/components/auth/LoginForm.tsx b/components/auth/LoginForm.tsx index 1372bd74a..412f19546 100644 --- a/components/auth/LoginForm.tsx +++ b/components/auth/LoginForm.tsx @@ -1,6 +1,6 @@ 'use client'; import { Eye, EyeOff, LockIcon, MailIcon } from 'lucide-react'; -import Image from 'next/image'; +// import Image from 'next/image'; import Link from 'next/link'; import { UseFormReturn } from 'react-hook-form'; import z from 'zod'; @@ -50,7 +50,7 @@ const LoginForm = ({

- Continue with Google - - + */} + {/*

Or

-
+
*/}
{

- @@ -177,13 +177,13 @@ const SignupForm = ({ onLoadingChange, invitation }: SignupFormProps) => { unoptimized /> Continue with Google - - + */} + {/*

Or

-
+
*/} {projectStatus === 'Validation' && ( - onVote(1)} - disabled={isVoting || userVote === 1} - // variant={userVote === 1 ? 'default' : 'outline'} - loading={isVoting} - iconPosition={userVote === 1 ? 'right' : 'left'} - icon={ - userVote === 1 ? ( - - ) : ( - - ) - } - className={`flex h-12 flex-1 items-center justify-center gap-2 rounded-lg text-base font-semibold shadow-lg transition-all duration-200 hover:shadow-xl ${ - userVote === 1 - ? 'bg-primary/10 border-primary/24 text-primary border' - : 'bg-[#A7F950] text-black hover:bg-[#A7F950]' - } `} - > - - {isVoting ? 'Voting...' : userVote === 1 ? 'Upvoted' : 'Upvote'} - - +
+ onVote(1)} + disabled={isVoting || userVote === 1} + loading={isVoting} + iconPosition={userVote === 1 ? 'right' : 'left'} + icon={ + userVote === 1 ? ( + + ) : ( + + ) + } + className={`flex h-12 flex-1 items-center justify-center gap-2 rounded-lg text-base font-semibold shadow-lg transition-all duration-200 hover:shadow-xl ${ + userVote === 1 + ? 'bg-primary/10 border-primary/24 text-primary border' + : 'bg-[#A7F950] text-black hover:bg-[#A7F950]' + } `} + > + + {isVoting ? 'Voting...' : userVote === 1 ? 'Upvoted' : 'Upvote'} + + + + {/* Dropdown text */} +
+ Voting is straightforward and individualistic — it’s for everyone. + Voting power, weight, and eligibility for who can vote are currently + under implementation. +
+
)} {projectStatus === 'funding' || diff --git a/lib/api/api.ts b/lib/api/api.ts index edeb5c309..1af831c4d 100644 --- a/lib/api/api.ts +++ b/lib/api/api.ts @@ -2,8 +2,8 @@ import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'; import Cookies from 'js-cookie'; import { useAuthStore } from '@/lib/stores/auth-store'; -// const API_BASE_URL = 'https://staging-api.boundlessfi.xyz/api'; -const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL; +const API_BASE_URL = 'https://staging-api.boundlessfi.xyz/api'; +// const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL; if (!API_BASE_URL) { throw new Error('NEXT_PUBLIC_API_URL environment variable is not defined'); }