This commit adds full Typescript support. Although .js files will keep on working normally, it's encouraged that new files are created with either .tsx(for components) or .ts(for non components) extensions.
Also, a linter with some basic settings for React and Typescript has been added. These settings can be changed at any time if needed.
* Add escrow/invoice time customization
* Add accordion for Expiry times
* Add current price on order maker
* Add deposit timeout limit on order page
* Minor aestetic fixes
* Implement pause/unpause and expiry reasons
* Add renew order
* Add highlight buy/sell on maker page
* Fix order renewal. Improve book visuals and response.
* Fix double renew requests
* Fix cancel orders. Fix paused status to delay
* Fix paused order layout and loading spinner
* Add telegram message: order is in chat
* Create pn helper function inside utils folder
The function pn() is being defined a few times in different components. This commit is the first of two commits to solve this issue.
This commit only creates the function inside the utils folder.
Jest is also being introduced for unit tests.
* Use pn from utils folder
This commit removes the multiple definitions of pn found across the project and imports the helper function whenever needed.