Skip to content

Commit

Permalink
Edit ticket buy button style
Browse files Browse the repository at this point in the history
  • Loading branch information
emscb committed Jul 16, 2023
1 parent a33184c commit 4596856
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"import/extensions": "off",
"linebreak-style": "off",
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"@typescript-eslint/no-shadow": "warn"
"@typescript-eslint/no-shadow": "warn",
"@typescript-eslint/no-non-null-assertion": "off"
}
}
14 changes: 9 additions & 5 deletions pages/ticket/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,15 @@ const TicketPage = () => {
</S.TicketTypeItemFrame>
<S.TicketTypeItemButton>
{ticketType.buyableUrl !== null ? (
<Link href={ticketType.buyableUrl} passHref>
<Button size="small" reversal>
구매하기
</Button>
</Link>
<Button
size="small"
reversal
onClick={() => {
window.open(ticketType.buyableUrl!);
}}
>
구매하기
</Button>
) : (
<Button size="small" reversal disabled>
판매 예정
Expand Down

0 comments on commit 4596856

Please sign in to comment.