From 5e7b0e5cbfb566a35507125219ec2391e7cbf26d Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 8 Sep 2022 05:44:32 +0100 Subject: [PATCH] feat: following button in text style --- src/components/dashboard/PagesManager.tsx | 12 ++-- src/components/site/SiteHeader.tsx | 74 +++++++++-------------- src/css/tailwind.css | 1 + src/pages/index.tsx | 6 +- 4 files changed, 38 insertions(+), 55 deletions(-) diff --git a/src/components/dashboard/PagesManager.tsx b/src/components/dashboard/PagesManager.tsx index 8acf6e85..de8df9bd 100644 --- a/src/components/dashboard/PagesManager.tsx +++ b/src/components/dashboard/PagesManager.tsx @@ -15,6 +15,7 @@ import { useGetPagesBySite, useDeletePage } from "~/queries/page" import { DotsHorizontalIcon } from "@heroicons/react/solid" import { delStorage } from "~/lib/storage" import { useQueryClient } from "@tanstack/react-query" +import { Button } from "../ui/Button" export const PagesManager: React.FC<{ isPost: boolean @@ -150,13 +151,8 @@ export const PagesManager: React.FC<{

{title}

- +
diff --git a/src/components/site/SiteHeader.tsx b/src/components/site/SiteHeader.tsx index fa498405..a6d55e1e 100644 --- a/src/components/site/SiteHeader.tsx +++ b/src/components/site/SiteHeader.tsx @@ -188,7 +188,7 @@ export const SiteHeader: React.FC<{
{siteSubscriptions.data ? ( setIsFollowListOpen(true)} > @@ -199,53 +199,37 @@ export const SiteHeader: React.FC<{ ) : ( "" )} - {subscription.data ? ( - - ) : ( - - )} + )} +