From 97fb4585ad99583a0995e757fa0c97ef4a714e67 Mon Sep 17 00:00:00 2001 From: Andrew Jiang Date: Fri, 20 Dec 2024 12:35:24 -0500 Subject: [PATCH] fix lint --- .../ui/src/api-reference/endpoints/EndpointParameter.tsx | 2 +- packages/fern-docs/ui/src/feedback/Feedback.tsx | 2 +- packages/fern-docs/ui/src/feedback/FeedbackPopover.tsx | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/fern-docs/ui/src/api-reference/endpoints/EndpointParameter.tsx b/packages/fern-docs/ui/src/api-reference/endpoints/EndpointParameter.tsx index 10b0253771..ecbf76e02c 100644 --- a/packages/fern-docs/ui/src/api-reference/endpoints/EndpointParameter.tsx +++ b/packages/fern-docs/ui/src/api-reference/endpoints/EndpointParameter.tsx @@ -2,7 +2,7 @@ import type * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; import type * as FernDocs from "@fern-api/fdr-sdk/docs"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; import { EMPTY_ARRAY } from "@fern-api/ui-core-utils"; -import { AvailabilityBadge } from "@fern-ui/components/badges"; +import { AvailabilityBadge } from "@fern-docs/components/badges"; import cn from "clsx"; import { compact } from "es-toolkit/array"; import { diff --git a/packages/fern-docs/ui/src/feedback/Feedback.tsx b/packages/fern-docs/ui/src/feedback/Feedback.tsx index f75825829b..bf1c77c362 100644 --- a/packages/fern-docs/ui/src/feedback/Feedback.tsx +++ b/packages/fern-docs/ui/src/feedback/Feedback.tsx @@ -1,4 +1,4 @@ -import { FernButton, FernButtonGroup, toast } from "@fern-ui/components"; +import { FernButton, FernButtonGroup, toast } from "@fern-docs/components"; import { useKeyboardPress } from "@fern-ui/react-commons"; import clsx from "clsx"; import { ThumbsDown, ThumbsUp } from "iconoir-react"; diff --git a/packages/fern-docs/ui/src/feedback/FeedbackPopover.tsx b/packages/fern-docs/ui/src/feedback/FeedbackPopover.tsx index b45b21a58c..cc78a2f3b5 100644 --- a/packages/fern-docs/ui/src/feedback/FeedbackPopover.tsx +++ b/packages/fern-docs/ui/src/feedback/FeedbackPopover.tsx @@ -1,4 +1,4 @@ -import { FernButton, FernButtonGroup } from "@fern-ui/components"; +import { FernButton, FernButtonGroup } from "@fern-docs/components"; import clsx from "clsx"; import { motion } from "framer-motion"; import { Check, ThumbsDown, ThumbsUp } from "iconoir-react"; @@ -154,13 +154,13 @@ export const FeedbackPopover = forwardRef< icon={ } variant="minimal" - intent={isHelpful === false ? "danger" : "none"} - active={isHelpful === false} + intent={!isHelpful ? "danger" : "none"} + active={!isHelpful} onClick={handleThumbsDown} className={clsx({ "w-full": isHelpful !== undefined })} transition={{ type: "spring", duration: 0.3, bounce: 0 }}