diff options
author | 2021-12-12 20:33:43 +0100 | |
---|---|---|
committer | 2021-12-12 20:33:43 +0100 | |
commit | 06379ea1bb2e15dffe741dafe24039c663ecda62 (patch) | |
tree | e2b3f1827c1e1730c983fb3e021393aea67c019e /src | |
parent | Fix PublishDebugLogModal close button color in Dark Mode (diff) | |
download | ferdium-app-06379ea1bb2e15dffe741dafe24039c663ecda62.tar.gz ferdium-app-06379ea1bb2e15dffe741dafe24039c663ecda62.tar.zst ferdium-app-06379ea1bb2e15dffe741dafe24039c663ecda62.zip |
#2319 Limit and shuffle recipes displayed on Welcome screen
Diffstat (limited to 'src')
-rw-r--r-- | src/components/auth/Welcome.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/auth/Welcome.js b/src/components/auth/Welcome.js index 794c78987..c97f84a1f 100644 --- a/src/components/auth/Welcome.js +++ b/src/components/auth/Welcome.js | |||
@@ -4,6 +4,7 @@ import PropTypes from 'prop-types'; | |||
4 | import { observer, PropTypes as MobxPropTypes, inject } from 'mobx-react'; | 4 | import { observer, PropTypes as MobxPropTypes, inject } from 'mobx-react'; |
5 | import { defineMessages, injectIntl } from 'react-intl'; | 5 | import { defineMessages, injectIntl } from 'react-intl'; |
6 | import serverlessLogin from '../../helpers/serverless-helpers'; | 6 | import serverlessLogin from '../../helpers/serverless-helpers'; |
7 | import { shuffleArray } from '../../helpers/array-helpers'; | ||
7 | 8 | ||
8 | import Link from '../ui/Link'; | 9 | import Link from '../ui/Link'; |
9 | 10 | ||
@@ -37,8 +38,10 @@ class Login extends Component { | |||
37 | 38 | ||
38 | render() { | 39 | render() { |
39 | const { intl } = this.props; | 40 | const { intl } = this.props; |
40 | const { loginRoute, signupRoute, changeServerRoute, recipes } = this.props; | 41 | const { loginRoute, signupRoute, changeServerRoute } = this.props; |
41 | 42 | let { recipes } = this.props; | |
43 | recipes = shuffleArray(recipes); | ||
44 | recipes.length = 8 * 3; | ||
42 | return ( | 45 | return ( |
43 | <div className="welcome"> | 46 | <div className="welcome"> |
44 | <div className="welcome__content"> | 47 | <div className="welcome__content"> |