aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/auth
diff options
context:
space:
mode:
authorLibravatar kytwb <kytwb@pm.me>2021-12-12 20:33:43 +0100
committerLibravatar kytwb <kytwb@pm.me>2021-12-12 20:33:43 +0100
commit06379ea1bb2e15dffe741dafe24039c663ecda62 (patch)
treee2b3f1827c1e1730c983fb3e021393aea67c019e /src/components/auth
parentFix PublishDebugLogModal close button color in Dark Mode (diff)
downloadferdium-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/components/auth')
-rw-r--r--src/components/auth/Welcome.js7
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';
4import { observer, PropTypes as MobxPropTypes, inject } from 'mobx-react'; 4import { observer, PropTypes as MobxPropTypes, inject } from 'mobx-react';
5import { defineMessages, injectIntl } from 'react-intl'; 5import { defineMessages, injectIntl } from 'react-intl';
6import serverlessLogin from '../../helpers/serverless-helpers'; 6import serverlessLogin from '../../helpers/serverless-helpers';
7import { shuffleArray } from '../../helpers/array-helpers';
7 8
8import Link from '../ui/Link'; 9import 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">