Browse Source

react-landing/src/TestimonialsTweets: made unclickable

pull/3/head
remorses 1 year ago
parent
commit
e1b6d6d35f
1 changed files with 19 additions and 13 deletions
  1. +19
    -13
      react-landing/src/TestimonialsTweets.tsx

+ 19
- 13
react-landing/src/TestimonialsTweets.tsx View File

@ -5,8 +5,12 @@ import { Row, Heading, Subheading } from '.'
import { PageContainer, Col } from './layout'
import { TwitterTweetEmbed } from 'react-twitter-embed'
import { useFaded } from './hooks'
import { useFaded } from './hooks'
import styled from '@emotion/styled'
const Unclickable = styled.div`
pointer-events: none;
`
function convertUrlToTweetId(url: string) {
if (url.startsWith('http')) {
@ -47,18 +51,20 @@ export function TestimonialsTweets({
key={i}
// w={['100%', '100%', '320px']}
>
<TwitterTweetEmbed
placeholder={
<Box
bg='#fff'
width='400px'
border='1px solid #ddd'
borderRadius='10px'
height='200px'
/>
}
tweetId={id}
/>
<Unclickable>
<TwitterTweetEmbed
placeholder={
<Box
bg='#fff'
width='400px'
border='1px solid #ddd'
borderRadius='10px'
height='200px'
/>
}
tweetId={id}
/>
</Unclickable>
</Col>
))}
</Col>

Loading…
Cancel
Save