Skip to content

Commit

Permalink
Chore : react-hook-form 설치
Browse files Browse the repository at this point in the history
  • Loading branch information
LikeFireAndSky committed Nov 8, 2023
1 parent 6f06085 commit 7173134
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/open/open.utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const fetchAllChat = async (token: string) => {
export const fetchAllChat = async (token: string, userId: string) => {
const res = await fetch('https://fastcampus-chat.net/chat', {
method: 'GET',
headers: {
Expand Down
2 changes: 1 addition & 1 deletion app/open/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type ChatData = {

const Open = async () => {
const accessToken = process.env.ACCESS_TOKEN as string;
const result = await fetchAllChat(accessToken);
const result = await fetchAllChat(accessToken, 'minseob');
console.log(result);
return (
<div className="flex flex-col bg-red-300">
Expand Down
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"next": "14.0.1",
"react": "^18",
"react-dom": "^18",
"react-hook-form": "^7.48.2",
"recoil": "^0.7.7",
"socket.io": "^4.7.2"
},
Expand Down

0 comments on commit 7173134

Please sign in to comment.