-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b6d09d
commit 1476d18
Showing
6 changed files
with
34 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,9 +44,10 @@ const login = () => { | |
e.stopPropagation(); | ||
e.preventDefault(); | ||
|
||
//await loginU({ email: '[email protected]', password: 'testPassword' }); | ||
await loginU(userData); | ||
navigate('/card'); | ||
await notification('로그인 성공', 'login'); | ||
await navigate('/card'); | ||
notification('로그인에 성공하였습니다.', 'login')(); | ||
|
||
const firebaseConfig = { | ||
apiKey: 'AIzaSyCsLBsvozvTnYlDH-5cS0A8X_AjV5o4jjM', | ||
|
@@ -70,15 +71,15 @@ const login = () => { | |
fcmToken(tokens); | ||
}); | ||
} | ||
if (res === 'denied') window.alert('알림을 받으시려면 알림을 허용해주세요'); | ||
// if (res === 'denied') window.alert('알림을 받으시려면 알림을 허용해주세요'); | ||
}); | ||
}; | ||
|
||
// prettier-ignore | ||
const handleSubmission = (target) => | ||
_.pipe( | ||
_.go( | ||
handleSubmitData(target), | ||
notification('로그인', 'login')); | ||
() => notification('로그인', 'login')()); | ||
|
||
// prettier-ignore | ||
const handleSubmitData = (target) => | ||
|
@@ -110,7 +111,7 @@ const login = () => { | |
appendInputForm, | ||
() => handleChangeInput(document), | ||
() => handleSubmitData(fragment), | ||
// () => handleSubmission(fragment), | ||
//() => handleSubmission(fragment), | ||
() => fragment); | ||
|
||
return appendLogin; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters