Guest User

Untitled

a guest
May 20th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. export const Forms = ({ status, killed, account, dispatch }) => {
  2. if (killed) return <KillForm />;
  3. return (
  4. <div>
  5. {status ? <span /> : <CreateForm dispatch={dispatch} account={account} />}
  6. {status == "payable" ? (
  7. <PayForm dispatch={dispatch} account={account} />
  8. ) : (
  9. <span />
  10. )}
  11. {status == "reclaimable" ? (
  12. <ReclaimForm dispatch={dispatch} account={account} />
  13. ) : (
  14. <span />
  15. )}
  16. <KillForm account={account} dispatch={dispatch} />
  17. </div>
  18. );
  19. };
Add Comment
Please, Sign In to add comment