Skip to content

Commit 6ea3ee7

Browse files
authored
Mod (#331)
* fix: modify api.ts * fix: remove google auth buttom
1 parent a54a1a3 commit 6ea3ee7

5 files changed

Lines changed: 46 additions & 35 deletions

File tree

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"liveServer.settings.port": 5501
3+
}

components/auth/LoginForm.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22
import { Eye, EyeOff, LockIcon, MailIcon } from 'lucide-react';
3-
import Image from 'next/image';
3+
// import Image from 'next/image';
44
import Link from 'next/link';
55
import { UseFormReturn } from 'react-hook-form';
66
import z from 'zod';
@@ -50,7 +50,7 @@ const LoginForm = ({
5050
</p>
5151
</div>
5252
<div className='mt-6 space-y-6'>
53-
<BoundlessButton
53+
{/* <BoundlessButton
5454
fullWidth
5555
size='xl'
5656
icon={
@@ -65,15 +65,15 @@ const LoginForm = ({
6565
className='bg-background hover:!text-background border !border-[#484848] text-base !text-white'
6666
>
6767
Continue with Google
68-
</BoundlessButton>
69-
68+
</BoundlessButton> */}
69+
{/*
7070
<div className='flex items-center justify-center gap-2.5'>
7171
<div className='h-[1px] w-full bg-[#2B2B2B]'></div>
7272
<p className='text-center text-sm leading-[145%] text-[#B5B5B5]'>
7373
Or
7474
</p>
7575
<div className='h-[1px] w-full bg-[#2B2B2B]'></div>
76-
</div>
76+
</div> */}
7777

7878
<Form {...form}>
7979
<form

components/auth/SignupForm.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { register } from '@/lib/api/auth';
33
import { zodResolver } from '@hookform/resolvers/zod';
44
import { LockIcon, MailIcon, User } from 'lucide-react';
5-
import Image from 'next/image';
5+
// import Image from 'next/image';
66
import Link from 'next/link';
77
import { useRouter } from 'next/navigation';
88
import { useEffect, useState } from 'react';
@@ -164,7 +164,7 @@ const SignupForm = ({ onLoadingChange, invitation }: SignupFormProps) => {
164164
</p>
165165
</div>
166166
<div className='mt-6 space-y-6'>
167-
<BoundlessButton
167+
{/* <BoundlessButton
168168
fullWidth
169169
className='bg-background border !border-[#484848] !text-white'
170170
>
@@ -177,13 +177,13 @@ const SignupForm = ({ onLoadingChange, invitation }: SignupFormProps) => {
177177
unoptimized
178178
/>
179179
Continue with Google
180-
</BoundlessButton>
181-
180+
</BoundlessButton> */}
181+
{/*
182182
<div className='flex items-center justify-center gap-2.5'>
183183
<div className='h-[1px] w-full bg-[#2B2B2B]'></div>
184184
<p className='text-center text-sm text-[#B5B5B5]'>Or</p>
185185
<div className='h-[1px] w-full bg-[#2B2B2B]'></div>
186-
</div>
186+
</div> */}
187187

188188
<Form {...form}>
189189
<form

components/project-details/project-sidebar/ProjectSidebarActions.tsx

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -52,29 +52,37 @@ export function ProjectSidebarActions({
5252
return (
5353
<div className='flex flex-row gap-3'>
5454
{projectStatus === 'Validation' && (
55-
<BoundlessButton
56-
onClick={() => onVote(1)}
57-
disabled={isVoting || userVote === 1}
58-
// variant={userVote === 1 ? 'default' : 'outline'}
59-
loading={isVoting}
60-
iconPosition={userVote === 1 ? 'right' : 'left'}
61-
icon={
62-
userVote === 1 ? (
63-
<ThumbsUp className='h-5 w-5' fill='#A7F950' />
64-
) : (
65-
<ArrowUp className='h-5 w-5' />
66-
)
67-
}
68-
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 ${
69-
userVote === 1
70-
? 'bg-primary/10 border-primary/24 text-primary border'
71-
: 'bg-[#A7F950] text-black hover:bg-[#A7F950]'
72-
} `}
73-
>
74-
<span className=''>
75-
{isVoting ? 'Voting...' : userVote === 1 ? 'Upvoted' : 'Upvote'}
76-
</span>
77-
</BoundlessButton>
55+
<div className='group relative inline-block'>
56+
<BoundlessButton
57+
onClick={() => onVote(1)}
58+
disabled={isVoting || userVote === 1}
59+
loading={isVoting}
60+
iconPosition={userVote === 1 ? 'right' : 'left'}
61+
icon={
62+
userVote === 1 ? (
63+
<ThumbsUp className='h-5 w-5' fill='#A7F950' />
64+
) : (
65+
<ArrowUp className='h-5 w-5' />
66+
)
67+
}
68+
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 ${
69+
userVote === 1
70+
? 'bg-primary/10 border-primary/24 text-primary border'
71+
: 'bg-[#A7F950] text-black hover:bg-[#A7F950]'
72+
} `}
73+
>
74+
<span>
75+
{isVoting ? 'Voting...' : userVote === 1 ? 'Upvoted' : 'Upvote'}
76+
</span>
77+
</BoundlessButton>
78+
79+
{/* Dropdown text */}
80+
<div className='absolute top-full left-1/2 z-10 mt-2 hidden w-64 -translate-x-1/2 rounded-xl border border-gray-200 bg-white p-3 text-sm text-gray-700 shadow-lg group-hover:block'>
81+
Voting is straightforward and individualistic — it’s for everyone.
82+
Voting power, weight, and eligibility for who can vote are currently
83+
under implementation.
84+
</div>
85+
</div>
7886
)}
7987

8088
{projectStatus === 'funding' ||

lib/api/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
22
import Cookies from 'js-cookie';
33
import { useAuthStore } from '@/lib/stores/auth-store';
44

5-
// const API_BASE_URL = 'https://staging-api.boundlessfi.xyz/api';
6-
const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL;
5+
const API_BASE_URL = 'https://staging-api.boundlessfi.xyz/api';
6+
// const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL;
77
if (!API_BASE_URL) {
88
throw new Error('NEXT_PUBLIC_API_URL environment variable is not defined');
99
}

0 commit comments

Comments
 (0)