|
|
@ -42,56 +42,61 @@ export default function DrawerSearchPopout ({ style }) {
|
|
|
|
|
|
|
|
|
|
|
|
// The result.
|
|
|
|
// The result.
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Motion
|
|
|
|
<div
|
|
|
|
defaultStyle={{
|
|
|
|
className='drawer--search--popout'
|
|
|
|
opacity: 0,
|
|
|
|
|
|
|
|
scaleX: 0.85,
|
|
|
|
|
|
|
|
scaleY: 0.75,
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
style={{
|
|
|
|
style={{
|
|
|
|
opacity: motionSpring,
|
|
|
|
...style,
|
|
|
|
scaleX: motionSpring,
|
|
|
|
position: 'absolute',
|
|
|
|
scaleY: motionSpring,
|
|
|
|
width: 285,
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{({ opacity, scaleX, scaleY }) => (
|
|
|
|
<Motion
|
|
|
|
<div
|
|
|
|
defaultStyle={{
|
|
|
|
className='drawer--search--popout'
|
|
|
|
opacity: 0,
|
|
|
|
style={{
|
|
|
|
scaleX: 0.85,
|
|
|
|
...style,
|
|
|
|
scaleY: 0.75,
|
|
|
|
position: 'absolute',
|
|
|
|
}}
|
|
|
|
width: 285,
|
|
|
|
style={{
|
|
|
|
opacity: opacity,
|
|
|
|
opacity: motionSpring,
|
|
|
|
transform: `scale(${scaleX}, ${scaleY})`,
|
|
|
|
scaleX: motionSpring,
|
|
|
|
}}
|
|
|
|
scaleY: motionSpring,
|
|
|
|
>
|
|
|
|
}}
|
|
|
|
<h4><FormattedMessage {...messages.format} /></h4>
|
|
|
|
>
|
|
|
|
<ul>
|
|
|
|
{({ opacity, scaleX, scaleY }) => (
|
|
|
|
<li>
|
|
|
|
<div
|
|
|
|
<em>#example</em>
|
|
|
|
style={{
|
|
|
|
{' '}
|
|
|
|
opacity: opacity,
|
|
|
|
<FormattedMessage {...messages.hashtag} />
|
|
|
|
transform: `scale(${scaleX}, ${scaleY})`,
|
|
|
|
</li>
|
|
|
|
}}
|
|
|
|
<li>
|
|
|
|
>
|
|
|
|
<em>@username@domain</em>
|
|
|
|
<h4><FormattedMessage {...messages.format} /></h4>
|
|
|
|
{' '}
|
|
|
|
<ul>
|
|
|
|
<FormattedMessage {...messages.user} />
|
|
|
|
<li>
|
|
|
|
</li>
|
|
|
|
<em>#example</em>
|
|
|
|
<li>
|
|
|
|
{' '}
|
|
|
|
<em>URL</em>
|
|
|
|
<FormattedMessage {...messages.hashtag} />
|
|
|
|
{' '}
|
|
|
|
</li>
|
|
|
|
<FormattedMessage {...messages.user} />
|
|
|
|
<li>
|
|
|
|
</li>
|
|
|
|
<em>@username@domain</em>
|
|
|
|
<li>
|
|
|
|
{' '}
|
|
|
|
<em>URL</em>
|
|
|
|
<FormattedMessage {...messages.user} />
|
|
|
|
{' '}
|
|
|
|
</li>
|
|
|
|
<FormattedMessage {...messages.status} />
|
|
|
|
<li>
|
|
|
|
</li>
|
|
|
|
<em>URL</em>
|
|
|
|
</ul>
|
|
|
|
{' '}
|
|
|
|
<FormattedMessage {...messages.text} />
|
|
|
|
<FormattedMessage {...messages.user} />
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
)}
|
|
|
|
<li>
|
|
|
|
</Motion>
|
|
|
|
<em>URL</em>
|
|
|
|
|
|
|
|
{' '}
|
|
|
|
|
|
|
|
<FormattedMessage {...messages.status} />
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<FormattedMessage {...messages.text} />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
</Motion>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|