Skip to content

Commit

Permalink
ボタン位置変更
Browse files Browse the repository at this point in the history
  • Loading branch information
ogis-yamanaka committed Oct 23, 2023
1 parent 4cea84a commit 3a93753
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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={back}>
{backName}
<Button variant="contained" color="primary" onClick={forward}>
{forwardName}
</Button>
</Box>
<Box m={2}>
<Button variant="contained" color="primary" onClick={forward}>
{forwardName}
<Button variant="contained" color="primary" onClick={back}>
{backName}
</Button>
</Box>
</Box>
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 3a93753

Please sign in to comment.