diff --git a/src/components/community-guidelines/community-guidelines.jsx b/src/components/community-guidelines/community-guidelines.jsx index 387d0a917..8dede98bb 100644 --- a/src/components/community-guidelines/community-guidelines.jsx +++ b/src/components/community-guidelines/community-guidelines.jsx @@ -1,6 +1,6 @@ import React, {useEffect} from 'react'; import {FormattedMessage} from 'react-intl'; -import thumbnailUrl from '../../lib/user-thumbnail'; +import thumbnailUrl from '../../lib/user-thumbnail.js'; import OnboardingNavigation from '../onboarding-navigation/onboarding-navigation.jsx'; import './community-guidelines.scss'; @@ -60,16 +60,21 @@ export const communityGuidelines = [ } ]; -const CommunityGuidelines = ({constructHeader = () => null, userId, currentPage, onNextPage, onBackPage}) => { +export const CommunityGuidelines = ({ + constructHeader = () => null, + userId, + currentPage, + nextButtonText, + onNextPage, + onBackPage +}) => { useEffect(() => { communityGuidelines.forEach(guideline => { new Image().src = `/images/onboarding/${guideline.image}`; }); }, []); - console.log('==user id', userId); - - const guideline = communityGuidelines[currentPage - 2]; + const guideline = communityGuidelines[currentPage]; return (