Skip to content

Commit

Permalink
feat(FE) : firebase 링크 추가(#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunjh96 committed Feb 20, 2023
1 parent 5fbe9ba commit 24160f0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/apis/firebase.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import client from './client';

export const fcmToken = (tokens) => {
const response = client.post('/fcm/token', { token: tokens });
const response = client.post('fcm/token', { token: tokens });

return response.data;
};
2 changes: 1 addition & 1 deletion client/src/components/auth/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const login = () => {
vapidKey:
'BPTfJAoUaJeyzryOu29dcccPl_1Db8OC4I_yBCC4qRTn_CfSHa_F10PoafMgkUkc7ynARCpU1RGyWRb-kAoDN4Q',
}).then((tokens) => {
fcmToken('/fcm/token', tokens);
fcmToken(tokens);
});
}
if (res === 'denied') window.alert('알림을 받으시려면 알림을 허용해주세요');
Expand Down
7 changes: 7 additions & 0 deletions client/src/components/common/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,19 @@ const header = (props) => {
$.el,
(fragment) => $.prepend(fragment, $.qs('#root')),
handleEvent);
<<<<<<< HEAD

// color === 'mint' && _.go(
// sideMenu(),
// () => $.qs('.trigger'),
// $.on('click', openMenuEvent));
}
=======
// () => sideMenu()(),
// () => $.qs('.trigger'));
// $.on('click', openMenuEvent));
// () => modal("로그아웃", "logout")());
>>>>>>> 137215d (feat(FE) : firebase 링크 추가(#164))

return appendHeader;
};
Expand Down

0 comments on commit 24160f0

Please sign in to comment.