about summary refs log tree commit diff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-04-26 22:15:47 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-04-26 15:15:47 +0200
commit6a1e2870537dffe4ffab7fc6c7e0508b28b78686 (patch)
treebb4747c2216ee822ffe5d86c66477a12994077c7 /app/assets/javascripts
parent5bda32e460e694c8d7cca1ab1793adb37bcfaca4 (diff)
Fix undefined variable in OnboardingModal (#2482)
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/components/features/ui/components/onboarding_modal.jsx12
1 files changed, 8 insertions, 4 deletions
diff --git a/app/assets/javascripts/components/features/ui/components/onboarding_modal.jsx b/app/assets/javascripts/components/features/ui/components/onboarding_modal.jsx
index 27becc6de..78ab646ee 100644
--- a/app/assets/javascripts/components/features/ui/components/onboarding_modal.jsx
+++ b/app/assets/javascripts/components/features/ui/components/onboarding_modal.jsx
@@ -36,12 +36,12 @@ PageOne.propTypes = {
   domain: PropTypes.string.isRequired
 };
 
-const PageTwo = () => (
+const PageTwo = ({ me }) => (
   <div className='onboarding-modal__page onboarding-modal__page-two'>
     <div className='figure non-interactive'>
-       <div className='pseudo-drawer'>
+      <div className='pseudo-drawer'>
         <NavigationBar account={me} />
-        </div>
+      </div>
       <ComposeForm
         text='Awoo! #introductions'
         suggestions={Immutable.List()}
@@ -62,6 +62,10 @@ const PageTwo = () => (
   </div>
 );
 
+PageTwo.propTypes = {
+  me: ImmutablePropTypes.map.isRequired,
+};
+
 const PageThree = ({ me, domain }) => (
   <div className='onboarding-modal__page onboarding-modal__page-three'>
     <div className='figure non-interactive'>
@@ -195,7 +199,7 @@ class OnboardingModal extends React.PureComponent {
 
     const pages = [
       <PageOne acct={me.get('acct')} domain={domain} />,
-      <PageTwo />,
+      <PageTwo me={me} />,
       <PageThree me={me} domain={domain} />,
       <PageFour domain={domain} intl={intl} />,
       <PageSix admin={admin} domain={domain} />