Skip to content

Commit

Permalink
Merge pull request #34 from LikeLion-Hackathon-T1/develop
Browse files Browse the repository at this point in the history
feat: 되돌아가기 라우팅 수정
  • Loading branch information
seokkkkkk authored Jul 25, 2024
2 parents 00e2f48 + feaf185 commit 9c0b083
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/components/Common/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ const Header = ({
<Container>
<LeftSection>
{back && (
<BackButton onClick={() => navigate(backSrc)}>
<BackButton
onClick={() =>
navigate(backSrc, {
replace: true,
})
}
>
<BackIcon />
</BackButton>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/OrderDetailPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import styled from "styled-components";
const OrderDetailPage = () => {
return (
<Container>
<Header title="주문상세" home={"true"} backSrc={"/order"} />
<Header title="주문상세" home={"true"} />
<SimpleReceipt />
<MenuList />
<AmountList />
Expand Down

0 comments on commit 9c0b083

Please sign in to comment.