Skip to content

Commit

Permalink
Merge branch 'dev' into 89-feat-add-realtime-notification-with-fcm
Browse files Browse the repository at this point in the history
  • Loading branch information
HOOOO98 authored Jan 23, 2024
2 parents 85feab0 + a06fde8 commit 0998206
Show file tree
Hide file tree
Showing 136 changed files with 3,850 additions and 980 deletions.
151 changes: 148 additions & 3 deletions package-lock.json

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

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,21 @@
"dotenv": "^16.3.1",
"firebase": "^9.23.0",
"framer-motion": "^10.16.16",
"immutability-helper": "^3.1.1",
"jwt-decode": "^4.0.0",
"react": "^18.2.0",
"react-cookie": "^7.0.1",
"react-datepicker": "^4.25.0",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "^18.2.0",
"react-hook-form": "^7.49.2",
"react-icons": "^4.12.0",
"react-kakao-maps-sdk": "^1.1.24",
"react-mobile-datepicker": "^4.0.2",
"react-router-dom": "^6.21.1",
"recoil": "^0.7.7",
"recoil-persist": "^5.1.0",
"swiper": "^11.0.5"
},
"devDependencies": {
Expand Down
10 changes: 7 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import {QueryClient, QueryClientProvider} from '@tanstack/react-query';
import {Suspense} from 'react';
import {CookiesProvider} from 'react-cookie';
import {DndProvider} from 'react-dnd';
import {HTML5Backend} from 'react-dnd-html5-backend';
import {BrowserRouter} from 'react-router-dom';
import './firebase/messaging-init-in-sw';

Expand All @@ -15,9 +17,11 @@ function App() {
<Suspense fallback='서스펜스 로딩입니다, 추후에 폴백UI를 추가하거나 아니면 지우겠습니다~~'>
<QueryClientProvider client={queryClient}>
<CookiesProvider>
<BrowserRouter>
<MainRouter />
</BrowserRouter>
<DndProvider backend={HTML5Backend}>
<BrowserRouter>
<MainRouter />
</BrowserRouter>
</DndProvider>
</CookiesProvider>
</QueryClientProvider>
</Suspense>
Expand Down
4 changes: 2 additions & 2 deletions src/api/vote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const getVoteInfo = async (voteId: number): Promise<VoteInfo> => {

//보트 리스트
export const getVoteListInfo = async (spaceId: number): Promise<VoteListInfo[]> => {
const response = await axios.get(`/api/votes/${spaceId}`);
const response = await axios.get(`/api/votes`, {params: {spaceId, voteStatusOption: 'ALL'}});
return response.data;
};

Expand All @@ -28,7 +28,7 @@ export const getVoteListInfo = async (spaceId: number): Promise<VoteListInfo[]>
/* ----------------------------------- P O S T ---------------------------------- */

//vote 추가
export const PostNewVote = async ({spaceId, title}: PostVoteTitleProps) => {
export const postNewVote = async ({spaceId, title}: PostVoteTitleProps) => {
try {
const response = await axios.post('/api/votes', {spaceId, title});
console.log('axios 포스트 성공', response);
Expand Down
3 changes: 3 additions & 0 deletions src/assets/homeIcons/search/nullImg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/icons/crying_imoji.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/assets/icons/error-warning-line.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/assets/icons/mapPin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/icons/meatball.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/icons/pencil.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/icons/pencil_with_line.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/icons/star.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/icons/star_fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0998206

Please sign in to comment.