Skip to content

Commit

Permalink
refactor: (#342) 사용자에게 보여주는 문구 수정 및 사용하지 않는 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilpop8663 committed Aug 12, 2023
1 parent 28ff49b commit 2b64820
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@ export default function MobileInstallPrompt({
</S.CancelButton>
</S.HeaderTop>
<S.Description>
VoTogether는 앱에서 원활히 사용할 수 있습니다. 설치하시겠습니까?
VoTogether는 앱처럼 원활히 사용할 수 있습니다. 설치하시겠습니까?
</S.Description>
</S.HeaderContent>
</S.Header>
{platform === 'ios' && (
<S.IosContainer>
<S.IconImage src={arrowUp} alt="추가하기 아이콘" />
<S.Description>버튼을 눌러 홈 화면에 추가하기를 통해 설치를 해주세요</S.Description>
<S.Description>
브라우저 메뉴바에서 <S.IconImage src={arrowUp} alt="추가하기 아이콘" /> 모양 버튼을
눌러 "홈 화면에 추가하기"를 통해 설치를 할 수 있습니다.
</S.Description>
</S.IosContainer>
)}
{platform === 'android' && (
Expand Down
8 changes: 1 addition & 7 deletions frontend/src/components/common/AppInstallPrompt/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@ export default function AppInstallPrompt() {
if (deferredPrompt) {
deferredPrompt.prompt();

deferredPrompt.userChoice.then((choiceResult: { outcome: string }) => {
if (choiceResult.outcome === 'accepted') {
window.console.log('사용자가 설치 프롬프트에 동의했습니다.');
} else {
window.console.log('사용자가 설치 프롬프트를 무시했습니다.');
}

deferredPrompt.userChoice.then(() => {
setDeferredPrompt(null);
});
}
Expand Down

0 comments on commit 2b64820

Please sign in to comment.