Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

move TweetCard.tsx component to global ui package

Isaiah Hamilton2fce40045b2a
diff --git a/apps/www/components/Sections/TwitterSocialProof.tsx b/apps/www/components/Sections/TwitterSocialProof.tsx
index 4037bd8305d..3c5b4502ff9 100644
--- a/apps/www/components/Sections/TwitterSocialProof.tsx
+++ b/apps/www/components/Sections/TwitterSocialProof.tsx
@@ -1,8 +1,7 @@
import { useState } from 'react'
import { useRouter } from 'next/router'
-import { Button, IconMessageCircle } from 'ui'
+import { Button, IconMessageCircle, TweetCard } from 'ui'
import Tweets from '../../data/tweets/Tweets.json'
-import TweetCard from '../TweetCard'
import Link from 'next/link'
function TwitterSocialProof() {
@@ -63,7 +62,7 @@ function TwitterSocialProof() {
>
{showButton && (
<div
- className={`absolute bottom-0 left-0 z-10 w-full h-[25%] bg-gradient-to-t from-[#1c1c1c] via-[#1c1c1c]`}
+ className={`absolute bottom-4 left-0 z-10 w-full h-[25%] bg-gradient-to-t from-[#1c1c1c] via-[#1c1c1c]`}
/>
)}
{Tweets.map((tweet: any, i: number) => (
diff --git a/packages/ui/index.tsx b/packages/ui/index.tsx
index f24c59b832e..73962b74958 100644
--- a/packages/ui/index.tsx
+++ b/packages/ui/index.tsx
@@ -21,6 +21,7 @@ export * from './src/components/Icon/IconBackground'
// DISPLAYS
export * from './src/components/Card'
+export * from './src/components/TweetCard'
export * from './src/components/Badge'
export * from './src/components/Tabs'
export * from './src/components/Alert'
diff --git a/apps/www/components/TweetCard.tsx b/packages/ui/src/components/TweetCard/TweetCard.tsx
similarity index 100%
rename from apps/www/components/TweetCard.tsx
rename to packages/ui/src/components/TweetCard/TweetCard.tsx
diff --git a/packages/ui/src/components/TweetCard/index.tsx b/packages/ui/src/components/TweetCard/index.tsx
new file mode 100644
index 00000000000..c02564fc0f1
--- /dev/null
+++ b/packages/ui/src/components/TweetCard/index.tsx
@@ -0,0 +1 @@
+export { default as TweetCard } from './TweetCard'
\ No newline at end of file