Skip to content

Instantly share code, notes, and snippets.

@ms314006
Last active January 29, 2023 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ms314006/bbd05e115e0249a54ffa7714ac89cd55 to your computer and use it in GitHub Desktop.
Save ms314006/bbd05e115e0249a54ffa7714ac89cd55 to your computer and use it in GitHub Desktop.
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