mirror of
https://github.com/funamitech/mastodon
synced 2024-11-27 22:38:42 +09:00
Fix PropTypes warning in OnboardingModal (#2191)
This commit is contained in:
parent
598d3defd5
commit
fdb2689a14
@ -43,6 +43,7 @@ const PageTwo = () => (
|
|||||||
text='Awoo! #introductions'
|
text='Awoo! #introductions'
|
||||||
suggestions={Immutable.List()}
|
suggestions={Immutable.List()}
|
||||||
mentionedDomains={[]}
|
mentionedDomains={[]}
|
||||||
|
spoiler={false}
|
||||||
onChange={() => {}}
|
onChange={() => {}}
|
||||||
onSubmit={() => {}}
|
onSubmit={() => {}}
|
||||||
onPaste={() => {}}
|
onPaste={() => {}}
|
||||||
@ -213,7 +214,7 @@ const OnboardingModal = React.createClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const styles = pages.map((page, i) => ({
|
const styles = pages.map((page, i) => ({
|
||||||
key: i,
|
key: `page-${i}`,
|
||||||
style: { opacity: spring(i === currentIndex ? 1 : 0) }
|
style: { opacity: spring(i === currentIndex ? 1 : 0) }
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@ -223,7 +224,7 @@ const OnboardingModal = React.createClass({
|
|||||||
{interpolatedStyles =>
|
{interpolatedStyles =>
|
||||||
<div className='onboarding-modal__pager'>
|
<div className='onboarding-modal__pager'>
|
||||||
{pages.map((page, i) =>
|
{pages.map((page, i) =>
|
||||||
<div key={i} style={{ opacity: interpolatedStyles[i].style.opacity, pointerEvents: i === currentIndex ? 'auto' : 'none' }}>{page}</div>
|
<div key={`page-${i}`} style={{ opacity: interpolatedStyles[i].style.opacity, pointerEvents: i === currentIndex ? 'auto' : 'none' }}>{page}</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user