diff --git a/package-lock.json b/package-lock.json index 296ffac..b50742b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "meets", - "version": "0.0.0", + "version": "1.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "meets", - "version": "0.0.0", + "version": "1.0.2", "dependencies": { "@hookform/error-message": "^2.0.1", "@hookform/resolvers": "^3.1.0", diff --git a/package.json b/package.json index b220c15..258603b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "meets", "private": true, - "version": "0.0.0", + "version": "1.0.2", "type": "module", "scripts": { "dev": "vite", diff --git a/src/components/AnotherUser/Auserpopup.tsx b/src/components/AnotherUser/Auserpopup.tsx index 9548c5a..fe40d6c 100644 --- a/src/components/AnotherUser/Auserpopup.tsx +++ b/src/components/AnotherUser/Auserpopup.tsx @@ -26,7 +26,7 @@ const Auserpopup = ({ id }: PropsType) => { }); useEffect(() => { - setFocus("comment"); + if (window.innerWidth > 690) setFocus("comment"); }, []); return ( diff --git a/src/components/Profile/AddPost.tsx b/src/components/Profile/AddPost.tsx index 96b5ac4..e7aa113 100644 --- a/src/components/Profile/AddPost.tsx +++ b/src/components/Profile/AddPost.tsx @@ -32,7 +32,7 @@ const AddPost = () => { }); useEffect(() => { - setFocus("url"); + if (window.innerWidth > 690) setFocus("url"); }, []); return ( diff --git a/src/components/Profile/IconPopup.tsx b/src/components/Profile/IconPopup.tsx index 93149e6..ff210a6 100644 --- a/src/components/Profile/IconPopup.tsx +++ b/src/components/Profile/IconPopup.tsx @@ -32,7 +32,7 @@ const IconPopup = () => { }); useEffect(() => { - setFocus("url"); + if (window.innerWidth > 690) setFocus("url"); }, []); return ( diff --git a/src/components/Profile/ImagePopup.tsx b/src/components/Profile/ImagePopup.tsx index fbc7fd6..ef66c7a 100644 --- a/src/components/Profile/ImagePopup.tsx +++ b/src/components/Profile/ImagePopup.tsx @@ -26,7 +26,7 @@ const ImagePopup = () => { const commentsQuery = useComments("query", uid, selectedPost?.id); useEffect(() => { - setFocus("comment"); + if (window.innerWidth > 690) setFocus("comment"); }, []); return ( diff --git a/src/components/Profile/Popup.tsx b/src/components/Profile/Popup.tsx index 5d8a471..3b6cd7b 100644 --- a/src/components/Profile/Popup.tsx +++ b/src/components/Profile/Popup.tsx @@ -32,7 +32,7 @@ const Popup = () => { }); useEffect(() => { - setFocus("username"); + if (window.innerWidth > 690) setFocus("username"); }, []); return (