From 821c3bcb5b2b5674dde60b100bb4a4e5e34e7c08 Mon Sep 17 00:00:00 2001 From: Web Dev Cody Date: Fri, 2 Feb 2024 14:54:21 -0500 Subject: [PATCH] fixing mobile pages --- convex/util.ts | 7 ------- src/app/profile/[userId]/page.tsx | 5 +++-- src/app/thumbnails/[thumbnailId]/page.tsx | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/convex/util.ts b/convex/util.ts index fe9fcff..d7606fe 100644 --- a/convex/util.ts +++ b/convex/util.ts @@ -97,10 +97,3 @@ async function getUserOrThrow(ctx: QueryCtx | MutationCtx) { export const getUser = async (ctx: QueryCtx | MutationCtx | ActionCtx) => { return await ctx.auth.getUserIdentity(); }; - -export const getUserById = async ( - ctx: QueryCtx | MutationCtx, - userId: string -) => { - return ctx.db; -}; diff --git a/src/app/profile/[userId]/page.tsx b/src/app/profile/[userId]/page.tsx index 19921d0..d450bb9 100644 --- a/src/app/profile/[userId]/page.tsx +++ b/src/app/profile/[userId]/page.tsx @@ -115,7 +115,7 @@ export default function ProfilePage() { const unfollowUser = useMutation(api.follows.unfollowUser); return ( -
+
@@ -147,8 +147,9 @@ export default function ProfilePage() { )}
+
-

Thumbnails

+

Thumbnails

diff --git a/src/app/thumbnails/[thumbnailId]/page.tsx b/src/app/thumbnails/[thumbnailId]/page.tsx index 042b72b..4333bd2 100644 --- a/src/app/thumbnails/[thumbnailId]/page.tsx +++ b/src/app/thumbnails/[thumbnailId]/page.tsx @@ -167,7 +167,7 @@ export default function ThumbnailPage() { {/* {!hasVoted && ( */} <> - +