feat: Update quotes and quote logic (#17381)

This commit is contained in:
Quincy Larson
2018-06-01 17:02:37 -05:00
committed by mrugesh mohapatra
parent 20f5db58bd
commit bc0e213529
6 changed files with 628 additions and 150 deletions

View File

@@ -1,5 +1,5 @@
import { defaultProfileImage } from '../../common/utils/constantStrings.json';
import { getRandomQuote } from '../../common/app/utils/quotes';
import { randomQuote } from '../../common/app/utils/get-words';
import { cachedMap } from '../utils/map';
// import NewsFeed from '../rss';
@@ -37,7 +37,7 @@ module.exports = function(app, done) {
function index(req, res) {
const { user } = req;
const homePage = user ? 'userHome' : 'noUserHome';
const { quote, author} = getRandomQuote();
const { quote, author} = randomQuote();
const title = user ?
`Welcome, ${user.name ? user.name : 'Camper'}!` :
'Learn to Code and Help Nonprofits';