Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

change twitter functions location

Steven Tey4b4ca446a9f5
diff --git a/app/(marketing)/metatags/launch.tsx b/app/(marketing)/metatags/launch.tsx
index 8da991f09c..d03dd5b7a9 100644
--- a/app/(marketing)/metatags/launch.tsx
+++ b/app/(marketing)/metatags/launch.tsx
@@ -1,5 +1,5 @@
-import Tweet from "@/components/shared/tweet";
-import { getTweet } from "@/lib/twitter/get-tweet";
+import Tweet from "#/ui/tweet";
+import { getTweet } from "#/lib/twitter/get-tweet";
export default async function LaunchTweet() {
const tweet = await getTweet("1595465648938930180");
diff --git a/lib/twitter/get-tweet.ts b/app/lib/twitter/get-tweet.ts
similarity index 100%
rename from lib/twitter/get-tweet.ts
rename to app/lib/twitter/get-tweet.ts
diff --git a/lib/twitter/index.ts b/app/lib/twitter/index.ts
similarity index 100%
rename from lib/twitter/index.ts
rename to app/lib/twitter/index.ts
diff --git a/lib/twitter/twitter-media.ts b/app/lib/twitter/twitter-media.ts
similarity index 100%
rename from lib/twitter/twitter-media.ts
rename to app/lib/twitter/twitter-media.ts
diff --git a/app/ui/blog/mdx.tsx b/app/ui/blog/mdx.tsx
index 9f43269d96..a1de5c77d2 100644
--- a/app/ui/blog/mdx.tsx
+++ b/app/ui/blog/mdx.tsx
@@ -2,7 +2,7 @@
import Link from "next/link";
import { useMDXComponent } from "next-contentlayer/hooks";
-import Tweet from "../../../components/shared/tweet";
+import Tweet from "../tweet";
import GithubRepo, { GithubRepoProps } from "@/components/shared/github-repo";
import BlurImage from "#/ui/blur-image";
diff --git a/app/ui/home/testimonials.tsx b/app/ui/home/testimonials.tsx
index affc53a0ea..dac90a4eed 100644
--- a/app/ui/home/testimonials.tsx
+++ b/app/ui/home/testimonials.tsx
@@ -1,8 +1,8 @@
import prisma from "@/lib/prisma";
import { nFormatter } from "@/lib/utils";
-import getTweetsMetadata, { homepageTweets } from "@/lib/twitter";
+import getTweetsMetadata, { homepageTweets } from "#/lib/twitter";
import MaxWidthWrapper from "@/components/shared/max-width-wrapper";
-import Tweet from "@/components/shared/tweet";
+import Tweet from "#/ui/tweet";
export default async function Testimonials() {
const userCount = process.env.DATABASE_URL ? await prisma.user.count() : 5000;
diff --git a/components/shared/tweet.tsx b/app/ui/tweet.tsx
similarity index 99%
rename from components/shared/tweet.tsx
rename to app/ui/tweet.tsx
index 0b583749bd..077f18b42b 100644
--- a/components/shared/tweet.tsx
+++ b/app/ui/tweet.tsx
@@ -2,7 +2,7 @@
import BlurImage from "#/ui/blur-image";
import { nFormatter, truncate } from "@/lib/utils";
-import { Heart, Message, Repeat, Twitter } from "./icons";
+import { Heart, Message, Repeat, Twitter } from "@/components/shared/icons";
import Tilt from "react-parallax-tilt";
function getRemainingTime(ISOString: Date) {