From 0266eaa758e28a1721519dde9db083fae2af6330 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Wed, 14 Dec 2022 01:46:59 +0000 Subject: [PATCH] feat: followers --- .../dashboard/DashboardActivity.tsx | 4 +- client/src/components/user/UGPTHeader.tsx | 149 ++++++++++-------- client/src/components/user/UserHeader.tsx | 11 ++ .../src/components/util/FollowUserButton.tsx | 92 +++++++++++ server/src/lib/setup/config.ts | 3 + .../api/v1/users/_userID/following/router.ts | 15 ++ .../router/api/v1/users/_userID/router.ts | 24 ++- 7 files changed, 228 insertions(+), 70 deletions(-) create mode 100644 client/src/components/util/FollowUserButton.tsx diff --git a/client/src/components/dashboard/DashboardActivity.tsx b/client/src/components/dashboard/DashboardActivity.tsx index 41d309f09..cdcf136f8 100644 --- a/client/src/components/dashboard/DashboardActivity.tsx +++ b/client/src/components/dashboard/DashboardActivity.tsx @@ -5,8 +5,8 @@ import { UserDocument } from "tachi-common"; export default function DashboardActivity({ user }: { user: UserDocument }) { return ( <> -