Skip to content

Commit

Permalink
chore: useDevice return 값 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
lydiacho committed Aug 7, 2024
1 parent 2ab8057 commit 77e8182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/hooks/useDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export function useIsMobile(maxWidth = '428.999px') {
return isMobile;
}

export function useDevice() {
export function useDevice(): 'TAB' | 'MOB' | 'DESK' {
const isTablet = useIsTablet();
const isMobile = useIsMobile();

return isTablet ? 'tablet' : isMobile ? 'mobile' : 'desktop';
return isTablet ? 'TAB' : isMobile ? 'MOB' : 'DESK';
}

0 comments on commit 77e8182

Please sign in to comment.