Skip to content

Commit

Permalink
fix : 배포 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
han-kimm committed Jan 4, 2024
1 parent ce73577 commit 4cc5dc2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
14 changes: 14 additions & 0 deletions components/Buttons/RedoButton/RedoButton.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.backbutton {
width: 5rem;
display: flex;
align-items: center;
font-size: 1.6rem;
font-weight: 500;
gap: 0.8rem;
}

.backbutton__img {
position: relative;
width: 2rem;
height: 2rem;
}
17 changes: 17 additions & 0 deletions components/Buttons/RedoButton/RedoButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Image from "next/image";
import { useRouter } from "next/router";
import styles from "./RedoButton.module.css";

const RedoButton = () => {
const router = useRouter();
return (
<button onClick={() => router.back()} className={styles.backbutton}>
<div className={styles.backbutton__img}>
<Image fill src="/icons/icon-arrowleft.svg" alt="바로 전에 있던 위치로 이동합니다." />
</div>
<span>이전 페이지로 돌아가기</span>
</button>
);
};

export default RedoButton;

0 comments on commit 4cc5dc2

Please sign in to comment.