61a02649cf
Fix themes
2022-12-25 20:11:50 -08:00
a69ae169fa
Tell ThemeProvider whether to use system theme
2022-12-25 19:34:06 -08:00
0bc0251dad
Refactor cookie setting in _app
2022-12-25 16:04:16 -08:00
a98585a334
Implement setUserToken util function
...
This function sets axios's default headers to be included before all queries.
We need to call `setUserToken` in _app.tsx so that the defaults are set before every client-side call, and we also need to call it in every instance of `setServerSideProps`.
As a result, wherever we use `getCookies` and construct a `headers` object, we can remove it. Right now, we've only removed it on the top-level pages.
2022-12-22 21:41:38 -08:00
e8843699c7
Remove trailing semicolons
2022-12-05 17:54:46 -08:00
846df09e46
Add ThemeProvider
2022-12-04 08:26:48 -08:00
efa864fb80
Run prettier on src
2022-12-04 07:19:31 -08:00
4f11f88c0f
Fix more linter errors
2022-11-19 20:50:39 -08:00
5d274a8336
Add typing to cookieData
2022-11-15 04:43:26 -08:00
84a7ca7733
Update to store authorized state in _app
2022-11-15 04:16:02 -08:00
752e468c4b
Remove unused cookie code from _app
2022-11-15 03:46:25 -08:00
364481e3ac
Fix various type errors from npm build
2022-04-10 13:31:13 -07:00
42ac5d7dc1
Lazily fixing build errors
2022-03-06 02:15:36 -08:00
62edc6ca5c
Add appWithTranslation HOC to pages
2022-03-04 17:56:17 -08:00
0ff255d71e
Changed how cookies are stored
...
We now have an account object and user object. Account stores critical information, where User is cosmetic/settings.
2022-03-04 06:31:21 -08:00
b67961b2a3
Fix build errors
...
I always forget something
2022-03-04 05:38:29 -08:00
1d82bc5055
Insert account info into state when the app first loads
2022-02-23 16:12:45 -08:00
a6b222000c
Remove references to React context and replace with state where necessary
2022-02-23 15:59:46 -08:00
a21a66c8ae
Move PartyContext to Party component
2022-02-03 19:46:26 -08:00
db642371b7
Add support for tinting segmented control with party element
2022-02-03 01:58:36 -08:00
55d037f6f4
Added a context to track logged-in and editable state
2022-01-31 23:34:38 -08:00
374e19b007
Add cookies and Layout to index page
2022-01-31 23:34:38 -08:00
728803d9c5
Migrate to Next.js
2022-01-24 21:54:50 -08:00