Skip to content

Commit

Permalink
#6 [Feat] Save, SaveComplete add navigate
Browse files Browse the repository at this point in the history
  • Loading branch information
eunbis committed Jul 23, 2022
1 parent e9591e1 commit 5faf4dc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/pages/Save/SaveComplete/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ function SaveComplete() {
<ImgBox>
<img src={SaveBear} alt="์ €์žฅํ•˜๋Š” ๊ณฐ๋Œ์ด ์ด๋ฏธ์ง€" />
</ImgBox>
<HomeButton>
<HomeButton
onClick={() => {
navigate('/');
}}
>
<Text>ํ™ˆ์œผ๋กœ ๋Œ์•„๊ฐ€๊ธฐ</Text>
</HomeButton>
</StyledRoot>
Expand Down
7 changes: 6 additions & 1 deletion src/pages/Save/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ function Save() {
</RecordBox>
</ContentBox>
<ButtonBox>
<PublicButton text="์ €์žฅํ•˜๊ธฐ" />
<PublicButton
onClick={() => {
navigate('/savecomplete');
}}
text="์ €์žฅํ•˜๊ธฐ"
/>
</ButtonBox>
</MainBox>
</StyledRoot>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Save/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const BackButton = styled.img`
height: 3rem;
`;

const Text = styled.p`
const Text = styled.div`
width: 100%;
display: flex;
flex-direction: column;
Expand Down

0 comments on commit 5faf4dc

Please sign in to comment.