mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-21 20:15:10 +01:00
Fix undefined variable in OnboardingModal (#2482)
This commit is contained in:
parent
5bda32e460
commit
6a1e287053
@ -36,7 +36,7 @@ PageOne.propTypes = {
|
|||||||
domain: PropTypes.string.isRequired
|
domain: PropTypes.string.isRequired
|
||||||
};
|
};
|
||||||
|
|
||||||
const PageTwo = () => (
|
const PageTwo = ({ me }) => (
|
||||||
<div className='onboarding-modal__page onboarding-modal__page-two'>
|
<div className='onboarding-modal__page onboarding-modal__page-two'>
|
||||||
<div className='figure non-interactive'>
|
<div className='figure non-interactive'>
|
||||||
<div className='pseudo-drawer'>
|
<div className='pseudo-drawer'>
|
||||||
@ -62,6 +62,10 @@ const PageTwo = () => (
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
PageTwo.propTypes = {
|
||||||
|
me: ImmutablePropTypes.map.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
const PageThree = ({ me, domain }) => (
|
const PageThree = ({ me, domain }) => (
|
||||||
<div className='onboarding-modal__page onboarding-modal__page-three'>
|
<div className='onboarding-modal__page onboarding-modal__page-three'>
|
||||||
<div className='figure non-interactive'>
|
<div className='figure non-interactive'>
|
||||||
@ -195,7 +199,7 @@ class OnboardingModal extends React.PureComponent {
|
|||||||
|
|
||||||
const pages = [
|
const pages = [
|
||||||
<PageOne acct={me.get('acct')} domain={domain} />,
|
<PageOne acct={me.get('acct')} domain={domain} />,
|
||||||
<PageTwo />,
|
<PageTwo me={me} />,
|
||||||
<PageThree me={me} domain={domain} />,
|
<PageThree me={me} domain={domain} />,
|
||||||
<PageFour domain={domain} intl={intl} />,
|
<PageFour domain={domain} intl={intl} />,
|
||||||
<PageSix admin={admin} domain={domain} />
|
<PageSix admin={admin} domain={domain} />
|
||||||
|
Loading…
Reference in New Issue
Block a user