Skip to content

Commit

Permalink
Merge pull request #118 from KakaoTech-BootCamp-Team-2/dev
Browse files Browse the repository at this point in the history
fix: 채팅방 리스트 채워서 테스트
  • Loading branch information
Hanjuri authored Sep 10, 2024
2 parents 0df9bd4 + 900046c commit 21a514a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions src/api/PeopleListCall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import axios from "axios";
import { instance } from "./instanceAuth.js";

export const PeopleListCall = async () => {
try {
const response = await instance.get(`/api/auth/member/all`);
console.log('apicall',response);
return response;
} catch (error) {
console.error("Error fetching PeopleList:", error.message);
throw error;
}
};
2 changes: 1 addition & 1 deletion src/pages/chat/ChatMain.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import dummyChatList from "./dummyChatData/dummyChatList";
function ChatMain() {
const [chatList, setChatList] = useState([])
const [selectedChatRoom, setSelectedChatRoom] = useState(null);
const nowUser = 'user1';
const nowUser = localStorage.getItem("username");



Expand Down

0 comments on commit 21a514a

Please sign in to comment.