From 2680f7fec679d75efbace486ed0c3bab5a4fc30b Mon Sep 17 00:00:00 2001 From: wlren Date: Mon, 10 Oct 2022 01:31:37 +0800 Subject: [PATCH] [questions][ui] clean up old href --- .../questions/card/FullQuestionCard.tsx | 22 +++++++++---------- apps/portal/src/utils/questions/withHref.tsx | 2 +- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/apps/portal/src/components/questions/card/FullQuestionCard.tsx b/apps/portal/src/components/questions/card/FullQuestionCard.tsx index 936c6416..f0dc1e4f 100644 --- a/apps/portal/src/components/questions/card/FullQuestionCard.tsx +++ b/apps/portal/src/components/questions/card/FullQuestionCard.tsx @@ -15,7 +15,6 @@ type UpvoteProps = export type FullQuestionCardProps = UpvoteProps & { company: string; content: string; - href?: string; location: string; receivedCount: number; role: string; @@ -30,10 +29,9 @@ export default function FullQuestionCard({ timestamp, role, location, - href, }: FullQuestionCardProps) { const altText = company + ' logo'; - const mainCard = ( + return (
{showVoteButtons && }
@@ -56,13 +54,13 @@ export default function FullQuestionCard({
); - return href ? ( - - {mainCard} - - ) : ( - mainCard - ); + // Return href ? ( + // + // {mainCard} + // + // ) : ( + // mainCard + // ); } diff --git a/apps/portal/src/utils/questions/withHref.tsx b/apps/portal/src/utils/questions/withHref.tsx index 7fb98976..681f7122 100644 --- a/apps/portal/src/utils/questions/withHref.tsx +++ b/apps/portal/src/utils/questions/withHref.tsx @@ -10,7 +10,7 @@ const withHref = >( return (