diff --git a/src/index.js b/src/index.js index 3c9d159a..aaa0f4cf 100644 --- a/src/index.js +++ b/src/index.js @@ -18,6 +18,9 @@ store.registerStores(); if (typeof window !== 'undefined') { const AppWithRouter = withRouter(App); + try { + store.loginUser = JSON.parse(getCookie('loginUser') || '{}'); + } catch (err) {} import('./routes').then(({ default: routes }) => { let sc = null; diff --git a/src/pages/Admin/Apps/Add/RepoList/index.jsx b/src/pages/Admin/Apps/Add/RepoList/index.jsx index fb3f2bac..13877586 100644 --- a/src/pages/Admin/Apps/Add/RepoList/index.jsx +++ b/src/pages/Admin/Apps/Add/RepoList/index.jsx @@ -27,7 +27,7 @@ export default class RepoList extends PureComponent { return (
-
{capitalize(type)}
+
{t(capitalize(type))}