Skip to content

Commit

Permalink
fix: typo in icon name (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jul 12, 2024
1 parent 1808e67 commit 9fba68c
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
TooltipProvider,
} from "@/components/ui/tooltip";
import { cn } from "@/lib/utils";
import { ArrowDownIcon, SendHorizonalIcon } from "lucide-react";
import { ArrowDownIcon, SendHorizontalIcon } from "lucide-react";
import Image from "next/image";

export const Thread: FC = () => {
Expand Down Expand Up @@ -128,7 +128,7 @@ const Composer: FC = () => {
className="placeholder:text-foreground/50 h-12 max-h-40 flex-grow resize-none bg-transparent p-3.5 text-sm outline-none"
/>
<ComposerPrimitive.Send className="bg-foreground m-2 flex h-8 w-8 items-center justify-center rounded-md text-2xl font-bold shadow transition-opacity disabled:opacity-10">
<SendHorizonalIcon className="text-background size-4" />
<SendHorizontalIcon className="text-background size-4" />
</ComposerPrimitive.Send>
</ComposerPrimitive.Root>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
TooltipProvider,
} from "@/components/ui/tooltip";
import { cn } from "@/lib/utils";
import { SendHorizonalIcon } from "lucide-react";
import { SendHorizontalIcon } from "lucide-react";
import AI_ThreadSuggestion from "./AI_ThreadSuggestion";
import ThreadSuggestion from "./ThreadSuggestion";

Expand Down Expand Up @@ -98,7 +98,7 @@ const Composer: FC = () => {
"absolute bottom-0 right-0 m-2.5 size-8 p-2 transition-opacity",
)}
>
<SendHorizonalIcon />
<SendHorizontalIcon />
<span className="sr-only">Send</span>
</Button>
</TooltipTrigger>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import type { FC } from "react";

import { Avatar, AvatarFallback } from "@/components/ui/avatar";
import { SendHorizonalIcon } from "lucide-react";
import { SendHorizontalIcon } from "lucide-react";

export const Thread: FC = () => {
return (
Expand Down Expand Up @@ -51,7 +51,7 @@ const Composer: FC = () => {
/>
<ThreadPrimitive.If running={false}>
<ComposerPrimitive.Send className="bg-foreground m-2 flex h-8 w-8 items-center justify-center rounded-md text-2xl font-bold shadow transition-opacity disabled:opacity-10">
<SendHorizonalIcon className="text-background size-4" />
<SendHorizontalIcon className="text-background size-4" />
</ComposerPrimitive.Send>
</ThreadPrimitive.If>
<ThreadPrimitive.If running>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
TooltipTrigger,
} from "@/components/ui/tooltip";
import { cn } from "@/lib/utils";
import { SendHorizonalIcon } from "lucide-react";
import { SendHorizontalIcon } from "lucide-react";

export const Thread: FC = () => {
return (
Expand Down Expand Up @@ -58,7 +58,7 @@ const Composer: FC = () => {
/>
<ThreadPrimitive.If running={false}>
<ComposerPrimitive.Send className="bg-foreground m-2 flex h-8 w-8 items-center justify-center rounded-md text-2xl font-bold shadow disabled:opacity-10">
<SendHorizonalIcon className="text-background size-4" />
<SendHorizontalIcon className="text-background size-4" />
</ComposerPrimitive.Send>
</ThreadPrimitive.If>
<ThreadPrimitive.If running>
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/ui/composer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { ComponentPropsWithoutRef, forwardRef, type FC } from "react";

import { SendHorizonalIcon } from "lucide-react";
import { SendHorizontalIcon } from "lucide-react";
import { withDefaults } from "./utils/withDefaults";
import { useThreadConfig } from "./thread-config";
import {
Expand Down Expand Up @@ -92,7 +92,7 @@ const ComposerSend = forwardRef<
return (
<ComposerPrimitive.Send asChild>
<ComposerSendButton tooltip={tooltip} {...props} ref={ref}>
{props.children ?? <SendHorizonalIcon />}
{props.children ?? <SendHorizontalIcon />}
</ComposerSendButton>
</ComposerPrimitive.Send>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
CopyIcon,
PencilIcon,
RefreshCwIcon,
SendHorizonalIcon,
SendHorizontalIcon,
} from "lucide-react";
import { MarkdownText } from "@/components/ui/assistant-ui/markdown-text";
import { TooltipIconButton } from "@/components/ui/assistant-ui/tooltip-icon-button";
Expand Down Expand Up @@ -92,7 +92,7 @@ const Composer: FC = () => {
variant="default"
className="absolute bottom-0 right-0 m-2.5 size-8 p-2 transition-opacity"
>
<SendHorizonalIcon />
<SendHorizontalIcon />
</TooltipIconButton>
</ComposerPrimitive.Send>
</ThreadPrimitive.If>
Expand Down
4 changes: 2 additions & 2 deletions packages/shadcn-registry/registry/assistant-ui/thread.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
ThreadPrimitive,
} from "@assistant-ui/react";
import type { FC } from "react";
import { SendHorizonalIcon } from "lucide-react";
import { SendHorizontalIcon } from "lucide-react";

import { Avatar, AvatarFallback } from "@/components/ui/avatar";
import { TooltipIconButton } from "@/components/ui/assistant-ui/tooltip-icon-button";
Expand Down Expand Up @@ -60,7 +60,7 @@ const Composer: FC = () => {
variant="default"
className="absolute bottom-0 right-0 m-2.5 size-8 p-2 transition-opacity"
>
<SendHorizonalIcon />
<SendHorizontalIcon />
</TooltipIconButton>
</ComposerPrimitive.Send>
</ComposerPrimitive.Root>
Expand Down

0 comments on commit 9fba68c

Please sign in to comment.