Skip to content

Commit 118b4ef

Browse files
committed
FEAT: 회원 정보 수정 진입 페이지 responsive 적용
1 parent 987549b commit 118b4ef

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/pages/myPage/AccountInfoChange/ChangeEnter.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import EnterForm from "../../../components/EnterForm";
77

88
import { SERVER_URL } from "../../../constants/ServerURL";
99

10+
import useWindowDimensions from "@/hooks/useWindowDimensions";
11+
1012
import "./ChangeEnter.scss";
1113
import "./../../../styles/text.css";
1214

@@ -15,6 +17,10 @@ const AccountInfoChangeEnter = ({ setChangeShowPermission }) => {
1517
const [pwValid, setPwValid] = useState(false);
1618
const [showPwValid, setShowPwValid] = useState(false);
1719

20+
const {
21+
widthConditions: { isMobile },
22+
} = useWindowDimensions();
23+
1824
const onClickInputBtn = async () => {
1925
try {
2026
const response = await axios.post(
@@ -60,6 +66,7 @@ const AccountInfoChangeEnter = ({ setChangeShowPermission }) => {
6066
}}
6167
errorFlag={showPwValid && !pwValid}
6268
errorMessage="비밀번호가 일치하지 않습니다."
69+
style={isMobile ? { width: "332px" } : {}}
6370
></AuthPwInputField>
6471
<button
6572
className="p-small-bold c-white t-align-center c-pointer"

0 commit comments

Comments
 (0)