diff options
author | 2019-08-25 19:58:26 +0200 | |
---|---|---|
committer | 2019-08-25 19:58:26 +0200 | |
commit | acca75efef0a47eed4bb0ad875e3047b051c24c6 (patch) | |
tree | b37e9e6733af103dc52f7a149fb2853ac6f3d1ba | |
parent | Add explanation for usage of 1.1.1.1 (diff) | |
download | ferdium-app-acca75efef0a47eed4bb0ad875e3047b051c24c6.tar.gz ferdium-app-acca75efef0a47eed4bb0ad875e3047b051c24c6.tar.zst ferdium-app-acca75efef0a47eed4bb0ad875e3047b051c24c6.zip |
Lint
-rw-r--r-- | src/api/server/ServerApi.js | 2 | ||||
-rw-r--r-- | src/components/auth/Login.js | 2 | ||||
-rw-r--r-- | src/components/auth/Signup.js | 2 | ||||
-rw-r--r-- | src/stores/NewsStore.js | 3 |
4 files changed, 5 insertions, 4 deletions
diff --git a/src/api/server/ServerApi.js b/src/api/server/ServerApi.js index 2111af9fe..efac5ca19 100644 --- a/src/api/server/ServerApi.js +++ b/src/api/server/ServerApi.js | |||
@@ -44,7 +44,7 @@ export default class ServerApi { | |||
44 | recipePreviews = []; | 44 | recipePreviews = []; |
45 | 45 | ||
46 | recipes = []; | 46 | recipes = []; |
47 | 47 | ||
48 | // User | 48 | // User |
49 | async login(email, passwordHash) { | 49 | async login(email, passwordHash) { |
50 | const request = await sendAuthRequest(`${apiBase()}/auth/login`, { | 50 | const request = await sendAuthRequest(`${apiBase()}/auth/login`, { |
diff --git a/src/components/auth/Login.js b/src/components/auth/Login.js index 87de92a97..ef6176110 100644 --- a/src/components/auth/Login.js +++ b/src/components/auth/Login.js | |||
@@ -156,7 +156,7 @@ export default @observer class Login extends Component { | |||
156 | )} | 156 | )} |
157 | </form> | 157 | </form> |
158 | <div className="auth__links"> | 158 | <div className="auth__links"> |
159 | <Link to='/settings/app'>Change server</Link> | 159 | <Link to="/settings/app">Change server</Link> |
160 | <Link to={signupRoute}>{intl.formatMessage(messages.signupLink)}</Link> | 160 | <Link to={signupRoute}>{intl.formatMessage(messages.signupLink)}</Link> |
161 | <Link to={passwordRoute}>{intl.formatMessage(messages.passwordLink)}</Link> | 161 | <Link to={passwordRoute}>{intl.formatMessage(messages.passwordLink)}</Link> |
162 | </div> | 162 | </div> |
diff --git a/src/components/auth/Signup.js b/src/components/auth/Signup.js index eb9603081..d343284a3 100644 --- a/src/components/auth/Signup.js +++ b/src/components/auth/Signup.js | |||
@@ -204,7 +204,7 @@ export default @observer class Signup extends Component { | |||
204 | </p> | 204 | </p> |
205 | </form> | 205 | </form> |
206 | <div className="auth__links"> | 206 | <div className="auth__links"> |
207 | <Link to='/settings/app'>Change server</Link> | 207 | <Link to="/settings/app">Change server</Link> |
208 | <Link to={loginRoute}>{intl.formatMessage(messages.loginLink)}</Link> | 208 | <Link to={loginRoute}>{intl.formatMessage(messages.loginLink)}</Link> |
209 | </div> | 209 | </div> |
210 | </div> | 210 | </div> |
diff --git a/src/stores/NewsStore.js b/src/stores/NewsStore.js index 92d34029e..43edeba8e 100644 --- a/src/stores/NewsStore.js +++ b/src/stores/NewsStore.js | |||
@@ -29,8 +29,9 @@ export default class NewsStore extends Store { | |||
29 | } | 29 | } |
30 | 30 | ||
31 | @computed get latest() { | 31 | @computed get latest() { |
32 | // TODO: fix random logout issues and reactivate news | ||
32 | // return this.latestNewsRequest.execute().result || []; | 33 | // return this.latestNewsRequest.execute().result || []; |
33 | return [] | 34 | return []; |
34 | } | 35 | } |
35 | 36 | ||
36 | // Actions | 37 | // Actions |