Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit b2c191a

Browse files
authored
Remove twitter embed (#40)
* Remove twitter embed * Remove reloadTwitterScript
1 parent 94f2fa7 commit b2c191a

File tree

7 files changed

+1
-121
lines changed

7 files changed

+1
-121
lines changed

src/components/TwitterEmbed.tsx

Lines changed: 0 additions & 59 deletions
This file was deleted.

src/hooks/useInterval.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/lib/reloadTwitterScript.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/pages/_app.tsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/pages/generics.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import CodeBlock from 'src/components/CodeBlock'
66
import * as snippets from 'src/lib/snippets'
77
import RunButtonText from 'src/components/RunButtonText'
88
import TwitterLink from 'src/components/TwitterLink'
9-
import TwitterEmbed from 'src/components/TwitterEmbed'
109
import Emoji from 'src/components/Emoji'
1110
import { articlesData } from 'src/lib/articles'
1211
import { baseUrl } from 'src/lib/meta'
@@ -797,11 +796,6 @@ const Page = () => (
797796
</A>
798797
.
799798
</P>
800-
<P>
801-
<Emoji type="twitter" /> I’d love it if you could like or retweet
802-
the tweet below! ↓
803-
</P>
804-
<TwitterEmbed id="1197963887804436480" />
805799
<P>
806800
<SourceAvailableText />
807801
</P>

src/pages/refactor.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import { articlesData } from 'src/lib/articles'
2929
import { baseUrl } from 'src/lib/meta'
3030
import { SourceAvailableText } from 'src/components/GitHubButton'
3131
import TodoWithData from 'src/components/TodoWithData'
32-
import TwitterEmbed from 'src/components/TwitterEmbed'
3332

3433
const techniques = [
3534
{
@@ -1185,10 +1184,8 @@ const Page = () => (
11851184
url={`${baseUrl}/refactor`}
11861185
>
11871186
click here to tweet this article.
1188-
</TwitterLink>{' '}
1189-
Also, I’d love it if you could like or retweet the tweet below! ↓
1187+
</TwitterLink>
11901188
</P>
1191-
<TwitterEmbed id="1212327903473459200" hideCard />
11921189
</>
11931190
),
11941191
footer: {

src/pages/todo.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import { SourceAvailableText } from 'src/components/GitHubButton'
2525
import TwitterLink from 'src/components/TwitterLink'
2626
import { articlesData } from 'src/lib/articles'
2727
import { baseUrl } from 'src/lib/meta'
28-
import TwitterEmbed from 'src/components/TwitterEmbed'
2928

3029
const compileSuccess = 'Compiled successfully!'
3130
const section1 = 'Types, Read-only Properties, and Mapped Types'
@@ -1970,11 +1969,6 @@ const Page = () => (
19701969
</A>
19711970
.
19721971
</P>
1973-
<P>
1974-
<Emoji type="twitter" /> I’d love it if you could like or retweet
1975-
the tweet below! ↓
1976-
</P>
1977-
<TwitterEmbed id="1207248902354718721" />
19781972
</>
19791973
),
19801974
footer: {

0 commit comments

Comments
 (0)