Skip to content

Commit

Permalink
fix : style 및 error메세지 수정
Browse files Browse the repository at this point in the history
fix : style 및 error메세지 수정
  • Loading branch information
phyuna0525 authored Mar 16, 2024
2 parents 00ae1da + 8b82bde commit c1dc07f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/components/common/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Header: NextPage = ({}) => {
<Image src={pick} alt="" />
</div>
</Link>
<div className=" font-sans text-heading6-M text-neutral-50">
<div className=" font-sans w-fit text-heading6-M text-neutral-50">
{data?.name} 선생님
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/common/input/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface InputProps {
onChange: ({ text, name }: ChangeProps) => void;
disabled?: boolean;
value: string;
onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
}

const Input: React.FC<InputProps> = ({
Expand Down
5 changes: 4 additions & 1 deletion src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ const Login: NextPage = () => {
},
onError: (error) => {
console.error("Login error:", error);
router.push("/login");
if (error.message === "Request failed with status code 500") {
alert("아이디 혹은 비밀번호가 일치하지 않습니다");
location.reload();
}
},
});
} catch (error) {
Expand Down
1 change: 1 addition & 0 deletions src/app/outAccept/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ const OutAccept = () => {
setData(data);
console.log("Out accept success", response);
setAccept(false);
location.reload();
},
onError: (error) => {
console.error("Out accept error", error);
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ const config: Config = {
"29": "7.25rem",
17: "4.5rem",
13: "3.875rem",
600: "37.5rem",
},
padding: {
sign: "6.875rem 0rem",
Expand Down

0 comments on commit c1dc07f

Please sign in to comment.