Skip to content

Commit 3feeff1

Browse files
authored
Rename scr to screen
1 parent 867c071 commit 3feeff1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/useDeviceOrientation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ export function useDeviceOrientation() {
1414
const [orientation, setOrientation] = useState(initialState)
1515

1616
useEffect(() => {
17-
const onChange = ({screen: scr}: {screen: ScaledSize}) => {
17+
const onChange = ({screen}: {screen: ScaledSize}) => {
1818
setOrientation({
19-
portrait: isOrientationPortrait(scr),
20-
landscape: isOrientationLandscape(scr),
19+
portrait: isOrientationPortrait(screen),
20+
landscape: isOrientationLandscape(screen),
2121
})
2222
}
2323

0 commit comments

Comments
 (0)