Last active
January 29, 2023 14:20
-
-
Save ms314006/bbd05e115e0249a54ffa7714ac89cd55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const TransactionInfo = (transaction) => ( | |
<div> | |
<label>交易狀態:</label> | |
<span>{ transaction.status === 'SUCCESS' ? '成功' : '失敗' }</span> | |
<button disabled={transaction.status !== 'SUCCESS'}> | |
退款 | |
</button> | |
</div> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment