kunchiehw / bidding_box

2 stars 0 forks source link

Refactor frontend code #98

Closed kunchiehw closed 6 years ago

kunchiehw commented 6 years ago

tl;dr: move BidButton to components/ to match new file structure.

  1. Move BidButton to components/ .
  2. Move BidButton unit test to components/tests.
  3. Add i18n/ folder and add the simplest function getMessage and US version messages.
  4. Add utils/constants and utils/helpers.
  5. Add utils/validators, of which the purpose is to stored all the custom validators needed.
  6. Use the new validators in the new BidButton.
  7. Use the new BidButton in BidButtonBlock.