Skip to content

Commit

Permalink
Fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncid committed Dec 11, 2024
1 parent 09b87c1 commit b685655
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions sparkle/src/components/Citation.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import React, { ReactNode } from "react";

import { Avatar } from "@sparkle/components/Avatar";
import { CardButton } from "@sparkle/components/Card";
import { Icon } from "@sparkle/components/Icon";
import { IconButton } from "@sparkle/components/IconButton";
import Spinner from "@sparkle/components/Spinner";
import { Tooltip } from "@sparkle/components/Tooltip";
import {
Avatar,
Card,
Icon,
IconButton,
Spinner,
Tooltip,
} from "@sparkle/components";
import { XCircleIcon } from "@sparkle/icons";
import { DocumentTextStrokeIcon, ImageStrokeIcon } from "@sparkle/icons/stroke";
import { classNames } from "@sparkle/lib/utils";
Expand Down Expand Up @@ -156,7 +158,7 @@ export function Citation({
: {};

const cardButton = (
<CardButton
<Card
variant="secondary"
size="sm"
className={classNames(
Expand All @@ -174,7 +176,7 @@ export function Citation({
</div>
)}
<div className={isLoading ? "s-opacity-50" : ""}>{cardContent}</div>
</CardButton>
</Card>
);
return href ? <Tooltip trigger={cardButton} label={title} /> : cardButton;
}

0 comments on commit b685655

Please sign in to comment.