7 Commits

Author SHA1 Message Date
0fb6c8a6c2 Reduce bundle size by 100kb by removing date-fns 2019-04-11 12:23:17 +08:00
3660540451 Add HistoryCrumbs.tsx 2019-04-04 10:50:33 +08:00
71f7687ab9 Add Link (ContextLink) 2019-04-02 23:33:06 +08:00
b38004a08a Add Modal.tsx 2019-03-26 20:33:00 +08:00
cf8aefd099 Add custom Redirect component
react-router v4 was made before React introduced a more performant
function renderToNodeStream to replace renderToString. All guides for
react-router are made using renderToString method, but I would love to
use the renderToNodeStream instead.

Since we cannot issue a 302 redirect after the page has already been
rendered (because status codes are written first), we can display a
<a> link with a text message. Once the React client-side library
hydrates the DOM Tree, the redirect should happen client side, so no
user action should be required.

This idea was taken from:
https://github.com/ReactTraining/react-router/issues/6191
2019-03-17 19:59:46 +05:00
5c847b94e6 Add full test for LoginForm 2019-01-20 21:39:32 +01:00
26f106fcae Create LoginForm 2019-01-19 19:21:56 +01:00