-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[온보딩] 사파리에서 날짜 형식 NaN, undefined 뜨는 현상 수정 #451
Merged
ExceptAnyone
merged 8 commits into
develop
from
feat/#448-kakao-redirect-tournament-endtime
Feb 29, 2024
+8
−7
Merged
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
127d7e2
feat: 사파리 undefined 해결을 위한 TEST 컨테이너 작성
ExceptAnyone eec548b
feat: 안드로이드/pc 공유하기 예외처리 다른 브랜치에서 복붙
ExceptAnyone 792615b
feat: 토스트 메세지 추가
ExceptAnyone 0203c9c
feat: 사파리 날짜계산 undefined 해결
ExceptAnyone 9b889bd
chore: 필요없는 코드 제거
ExceptAnyone 203f47b
Merge branch 'develop' into feat/#448-kakao-redirect-tournament-endtime
ExceptAnyone 62f1a1b
fix: 병합 해결
ExceptAnyone dcfc364
Merge branch 'develop' into feat/#448-kakao-redirect-tournament-endtime
ExceptAnyone File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
export const useHandleShare = async (title: string, text: string) => { | ||
export const useHandleShare = async ( | ||
title: string, | ||
text: string, | ||
url: string, | ||
handleCopyToClipboard: (text: string) => void, | ||
) => { | ||
try { | ||
await navigator.share({ | ||
title: title, | ||
text: text, | ||
url: window.location.href, | ||
url: url, | ||
}); | ||
} catch (error) { | ||
console.error('Web Share API를 지원하지 않습니다.'); | ||
console.error('Web Share API를 사용할 수 없습니다.', error); | ||
} | ||
return <div></div>; | ||
}; | ||
|
||
export default useHandleShare; | ||
if (typeof navigator.share === 'undefined') { | ||
handleCopyToClipboard(url); | ||
console.log('클릭'); | ||
} | ||
}; |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 부분이 브라우저 이슈 때문에 생긴 수정 사항이군요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
맞아여 ㅠ PR 내용 조금 더 자세하게 수정하고 관련 링크 첨부했는데 한 번 확인해보셔도 좋을 것 같습니다!!