Skip to content

Commit 43432e7

Browse files
authored
Merge pull request #91 from GDGoCINHA/develop
Production Test
2 parents 4875f0a + 979e1c3 commit 43432e7

File tree

4 files changed

+1341
-1109
lines changed

4 files changed

+1341
-1109
lines changed

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/main/Header.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { useAuthenticatedApi } from '@/hooks/useAuthenticatedApi.js';
77

88
export default function Header() {
99

10-
const { apiclient, handLeLogout }= useAuthenticatedApi();
10+
const { apiClient, handleLogout }= useAuthenticatedApi();
11+
1112
return (
1213
<Navbar className=" pl-[32px] min-h-[105px]" maxWidth="full">
1314
<NavbarBrand className="flex flex-row gap-x-[16px] cursor-pointer flex-grow-0 basis-auto">
@@ -24,7 +25,7 @@ export default function Header() {
2425
</Link>
2526
</NavbarItem>
2627
<NavbarItem>
27-
<Link color="foreground" className="text-white" href="#">
28+
<Link color="foreground" className="text-white" href="/study">
2829
스터디
2930
</Link>
3031
</NavbarItem>
@@ -45,7 +46,7 @@ export default function Header() {
4546
<Heart className="w-9 h-9 text-white cursor-pointer" />
4647
</NavbarItem>
4748
<NavbarItem>
48-
<User className="w-9 h-9 text-white cursor-pointer" onClick={handLeLogout} />
49+
<User className="w-9 h-9 text-white cursor-pointer" onClick={() => handleLogout()} />
4950
</NavbarItem>
5051
</NavbarContent>
5152
</Navbar>

src/app/signup/page.jsx

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function Signup() {
1111
const router = useRouter();
1212
const [isLoading, setIsLoading] = useState(true);
1313

14-
const { apiclient, handLeLogout }= useAuthenticatedApi();
14+
const { apiClient, handLeLogout }= useAuthenticatedApi();
1515

1616
// 사용자 정보 상태
1717
const [name, setName] = useState("");
@@ -102,23 +102,10 @@ export default function Signup() {
102102
studentId: studentId,
103103
phoneNumber: phoneNumber
104104
}
105-
106-
// 콘솔에 상세 정보 출력
107-
console.log("===== 회원가입 정보 =====");
108-
console.log(`이름: ${name}`);
109-
console.log(`이메일: ${email}`);
110-
console.log(`비밀번호: ${password}`);
111-
console.log(`전공: ${major}`);
112-
console.log(`학번: ${studentId}`);
113-
console.log(`전화번호: ${phoneNumber}`);
114-
console.log("=======================");
115-
console.log("회원가입 정보 객체:", userinfo);
116105

117106
try {
118-
const res = await apiClient.get('/auth/signup', {
119-
params: { userinfo },
120-
});
121-
console. log (res);
107+
const res = await apiClient.post('/auth/signup', userinfo);
108+
console.log(res);
122109
} catch (error) {
123110
console.log(error);
124111
}

0 commit comments

Comments
 (0)