Skip to content

[URH-66] useDeviceDetect 신규 #54

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

Merged
merged 10 commits into from
Aug 29, 2024
Merged

[URH-66] useDeviceDetect 신규 #54

merged 10 commits into from
Aug 29, 2024

Conversation

foresec
Copy link
Collaborator

@foresec foresec commented Aug 23, 2024

👾 Pull Request

  • 상태: 신규

1️⃣ Spec

  • 현재 디바이스의 유형(moblie, tablet, desktop), OS 및 Browser를 감지하는 훅

2️⃣ 변경 사항

  • 처음에는 tablet을 포함했으나 기기의 버전에 따라 너무 다양하게 바뀌는 분야로 보여 tablet 판별 제외

3️⃣ 예시 코드

  const { isMobile, isDesktop, os, browser } = useDeviceDetect();
  • isMobile : 사용 중인 디바이스의 Mobile 여부를 나타냅니다.
  • isTablet : 사용 중인 디바이스의 Tablet 여부를 나타냅니다.
  • isDesktop : 사용 중인 디바이스의 Desktop 여부를 나타냅니다.
  • os : 사용 중인 디바이스의 OS 이름(문자열)을 나타냅니다.
    cf) Windows, macOS, Linux, Android, iOS
  • browser : 사용 중인 브라우저의 이름(문자열)을 나타냅니다.
    cf) Chrome, Safari, Whale, Edge, Firefox

4️⃣ 관련 문서 (선택 사항)

@Choozii Choozii requested a review from bicochan August 23, 2024 14:32
@foresec foresec requested a review from Choozii August 23, 2024 14:33
Copy link
Member

@Choozii Choozii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙆‍♀️ 수고하셨습니당

Copy link
Member

@bicochan bicochan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM👍🏻🚀

@foresec foresec merged commit c6d1e4c into master Aug 29, 2024
2 checks passed
@foresec foresec deleted the URH-66/use-device-detect branch August 29, 2024 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants