Commit Graph

7 Commits

Author SHA1 Message Date
Austin Chen
7d47a5910f Minor cleanups 2022-05-24 08:46:05 -07:00
Austin Chen
8e746ce0cb Pull out quick bet display component 2022-05-24 08:40:43 -07:00
Austin Chen
a204380f57 Animate the prob bar change too 2022-05-24 08:09:13 -07:00
Austin Chen
2373f8e009 Show amount moved in probability 2022-05-24 07:56:32 -07:00
Austin Chen
6551aa7ea4 Revert "Switch from triangle to a circle arrow"
This reverts commit 370f8eefe4.
2022-05-24 07:38:58 -07:00
Austin Chen
370f8eefe4 Switch from triangle to a circle arrow
WIP
2022-05-24 07:34:47 -07:00
Austin Chen
8cedf93901
Implement quick betting: directly from the market card (#291)
* Play with using 3 icons for 1-click usage

* Align bet icons with the percentages

* Hide liquidity injection star, for now

* Fix Free Response card layouts

* Use triangles instead of planes

* Set correct hover states the arrows

* Fix down triangle & padding

* Default large nums to 2 sigfigs

* Clean up hover areas

* Fix bet width, remove "chance/expected"

* Show "M$20" on hover, hide arrows when closed

* Improve click targets

* FR: "MULTI" => "MANY", single => "TOP"

* Install react-hot-toaster

* Implement quick betting on binary questions

* Handle different kinds of markets

* Extract out QuickBet into its own component

* Minor tweaks

* Visually separate out quick bet pane

* Hide quick bet for FR markets with no answers

* Fill in which bets the user has already placed

* Animate movements, fix binary direction

* Hover arrows are now always gray

* Pull out code into quick-bet.tsx

* Minor comments

* Fix import

ts-ignore is scary

* Fixes from James's feedback

* Hide text only on quickbet
2022-05-23 23:44:16 -07:00