Commit Graph

32 Commits

Author SHA1 Message Date
Jaco Greeff
9fde464c11
Bump dev, JSX prop rules (#2499) 2020-04-01 15:30:08 +02:00
Keith Ingram
38405a8d3a
Display collective prime voter info and warnings (#2374)
* Display prime voter info

* enhancements

* Update packages/page-council/src/index.tsx

* Use React.memo, align society with council displays

* Fix merge lints

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-03-13 12:39:37 +01:00
Jaco Greeff
2b534fc1fb
Additional wrappers via React.memo (#2377)
* More React.memo

* Last non-memo functional components in staking
2020-03-12 15:45:59 +01:00
Jaco Greeff
83a2ddedd4
useCallback in all staking callbacks (#2376)
* Add React.emomo to some components

* Linting

* useCallback for callbacks

* Additional useCallback impl.
2020-03-12 12:59:09 +01:00
Jaco Greeff
433c06690a
Remove upgrade overlay (API with runtime upgrade support) (#2291)
* Remove upgrade overlay (API with runtime upgrade support)

* Bump deps
2020-02-19 17:15:57 +01:00
Jaco Greeff
0fce51cb1a
Metadata update reload (#2143)
* Metadata update reload

* Check around status
2020-01-22 12:23:19 +01:00
Jaco Greeff
384d2160cf
Adjust overlays (#2142) 2020-01-17 15:29:02 +01:00
Jaco Greeff
8861a57645
Additional useTranslation usage (#2133) 2020-01-16 12:33:37 +01:00
Jaco Greeff
4febafac10
Connecting overlay rendering order (#2130)
* Connecting overlay rendering order

* API

* Combine components

* Unused import
2020-01-15 21:44:07 +01:00
Jaco Greeff
0795c9aa32
Remove FF warning (can now connect to local ws) (#2106) 2020-01-12 11:50:07 +01:00
Jaco Greeff
562e11dc06
Bump deps (#2091) 2020-01-06 16:16:50 +01:00
Jaco Greeff
c3e16ac040
s/useApiContext/useApi/ (#1900) 2019-11-16 20:21:46 +01:00
Jaco Greeff
e0acd15b43
useAccounts hook (#1898)
* useAccounts hook

* Drop some withRouter

* Add setImmediate to trackStream

* Combine unsubscribe into subscribe

* Use before define

* Ass trackPromise

* Cleanup mapping for params

* Addressbook display
2019-11-16 10:13:07 +01:00
Jaco Greeff
c167227845
Add useApiContext (#1890)
* Add useApiContext

* Add missing withApiContext import

* useCacheKey, rename headers

* Adjustment on sessionRewards naming

* Renames based on defacto standards
2019-11-15 10:51:12 +01:00
Jaco Greeff
a66577eda4
More functional component conversions (#1633)
* More functional component conversions

* Cleanups

* functional Elapsed

* Status -> functional

* Couple more

* One more tiny one
2019-09-19 17:57:32 +02:00
Jaco Greeff
f178674d7f
No wss warn on 127.0.0.1 (#1597) 2019-09-09 08:21:51 +02:00
Jaco Greeff
ed29ca4aa8
Fix Connecting (#1595)
* Fix Connecting

* Remove stray log
2019-09-09 07:43:02 +02:00
kwingram25
c9790f85d9
useContext instead of withApi (#1579)
* useContext instead of withApi

* types to interface, fixes
2019-09-03 15:00:09 +02:00
Jaco Greeff
52ab9ac0e3
withApi -> useContext (fixes ref issues) (#1576) 2019-09-03 10:19:50 +02:00
kwingram25
cdf1d88de5 Functional components (apps, react-components) (#1564)
* Functional components (apps, react-components)

* move consts
2019-09-01 14:23:42 +02:00
Jaco Greeff
ec8be875df
typescript-eslint 2 (#1568)
* Setup for typescript-eslint 2

* Cleanup linting

* Bump ui version

* Exclude build folders
2019-09-01 13:34:56 +02:00
Jaco Greeff
4c53997b66
Bump deps (#1543) 2019-08-27 15:19:59 +02:00
Jaco Greeff
e6ca2db884
Rename ui-* -> react-* (#1495)
* Rename ui-* -> react-*

* Rename actual folders

* react-app -> react-components

* CSS links
2019-08-12 13:12:05 +02:00
Jaco Greeff
7dd6930163
Display extension info for "create now" overlay (#1430)
* Display extension info for "create now" overlay

* Revert banner sharing

* Lint
2019-07-21 20:18:06 +02:00
Jaco Greeff
8bb35dd9ff
Complete eslint swap (#1407) 2019-07-16 11:56:40 +02:00
Jaco Greeff
144c8bbd85
eslint fixes (round 2) (#1401)
* eslint fixes (round 2)

* ui-params converted

* Tiny.

* Classes fix

* Some type cleanups

* Cleanup traling ,

* < 1k

* Small additions

* <750

* Mini updates modifiers

* More ui-app cleanups

* 312 problems (182 errors, 130 warnings)
2019-07-15 23:17:19 +02:00
Jaco Greeff
0e2265ff70
Some initial pre-eslint cleanups (#1383)
* Some initial cleanups

* Make it lint

* Small s/type/interface/ additions

* Small minor s/type/interface/

* More type -> interface

* Add lint:new rule

* Some small updates

* Cleanup dangling tslint  issues

* Small updates

* ui-signer cleanups

* ui-reactive updated

* Make lint:new run

* Mini ui-params cleanups

* Some additions

* Tiny... and done for now.

* 1950 problems (1241 errors, 709 warnings)

* 1829 problems (1181 errors, 648 warnings)

* 1674 problems (1181 errors, 493 warnings) (no any... for now)

* Small additions.

* Array<T> -> T[] (all)
2019-07-14 22:27:12 +02:00
Jaco Greeff
ba6b0c6df7
Basic council overview (#1267)
* Cleanup styles for staking

* Basic council members list

* AddressRow adjustments

* Less-spacy rows

* Adjust after merge

* Move accounts to first tranch

* s/council/members/

* Update CardGrid.tsx

* Remove any on styled props

* Small readability tweak
2019-06-04 10:04:14 +02:00
Thibaut Sardan
66eb434e31 Direct link to account creation (#1266)
* create link

* comment
2019-06-03 11:51:08 +02:00
Jaco Greeff
c9f023c1a2
Small overlay adjustments (#1261)
* Small overlay adjustments

* Adjust radius

* Remove unneeded any

* Remove apps/tyles.ts

* Adjust styles, always with close
2019-06-02 16:29:55 +02:00
Jaco Greeff
86a767de68
Make enable() call to extensions (#1194)
* Make enable() call to extensions

* It works

* Add overlay for injected (prompt)

* Use signer from injectedPromise
2019-05-23 12:43:39 +02:00
Jaco Greeff
1027afa7e8
Create an overlay for no accounts (#1105)
* Create an overlay for no accounts

* Overlays to the top

* Remove extrinsics, talk about hidden features

* Relocated styled-components

* Dismiss button
2019-05-09 15:45:21 +02:00