Skip to content

Commit

Permalink
変更をいったん戻す
Browse files Browse the repository at this point in the history
  • Loading branch information
ogis-yamanaka committed Jul 26, 2023
1 parent a4de58d commit df9acaa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions app/src/compornents/molecules/navigationButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ const NavigationButton: React.FC<{forwardName: string, forward: () => void, back
return (
<Box className={classes.naviButton}>
<Box m={2}>
<Button variant="contained" color="primary" onClick={forward}>
{forwardName}
<Button variant="contained" color="primary" onClick={back}>
{backName}
</Button>
</Box>
<Box m={2}>
<Button variant="contained" color="primary" onClick={back}>
{backName}
<Button variant="contained" color="primary" onClick={forward}>
{forwardName}
</Button>
</Box>
</Box>
Expand Down
2 changes: 1 addition & 1 deletion app/src/compornents/pages/cartPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const CartPage: React.FC = () => {
return (
<div className={classes.root}>
<CartItem cart={data.cart} handleChange={itemCountChange} handleDelete={itemDelete} />
<NavigationButton forwardName="購入確認へ" forward={forward} backName="商品一覧へ戻る" back={back} />
<NavigationButton forwardName="購入へ進む" forward={forward} backName="商品一覧へ戻る" back={back} />
</div>
)
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/compornents/pages/productDetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const ProductDetailPage: React.FC = () => {
return (
<div className={classes.root}>
<ProductDetail {...data} />
<NavigationButton forwardName="購入フロー" forward={inputCart} backName="商品一覧へ戻る" back={back} />
<NavigationButton forwardName="購入へ進む" forward={inputCart} backName="商品一覧へ戻る" back={back} />
<ProductInputDialog openFlag={open} forward={forward} back={back} />
</div>
)
Expand Down

0 comments on commit df9acaa

Please sign in to comment.