Skip to content

Commit

Permalink
fix: chore
Browse files Browse the repository at this point in the history
  • Loading branch information
yutakobayashidev committed Oct 21, 2023
1 parent 410f898 commit 24bfc92
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/app/(app)/about/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default async function Page() {
<div className="grid grid-cols-5 md:grid-cols-12">
{contributors.map((contributor) => (
<a
href={contributor.url}
href={contributor.html_url}
key={contributor.id}
className="h-14 w-14"
>
Expand Down
10 changes: 8 additions & 2 deletions frontend/src/components/chatbot/chatbot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { placeholderAtom } from "@src/store/placeholder";
import { Country } from "@src/types/country";
import { ArrowDownIcon, ArrowUpIcon } from "@xpadev-net/designsystem-icons";
import { useChat } from "ai/react";
import clsx from "clsx";
import { AnimatePresence, motion } from "framer-motion";
import { useAtom } from "jotai";
import { Wand2 } from "lucide-react";
Expand Down Expand Up @@ -51,6 +52,8 @@ export default function Chatbot({
},
});

const disabled = isLoading || input.length === 0;

return (
<div className="fixed bottom-[0] right-[30px] hidden w-[380px] rounded-t-2xl border border-gray-200 bg-white px-5 py-3 shadow-2xl md:block">
<div className="flex items-center justify-between">
Expand Down Expand Up @@ -136,8 +139,11 @@ export default function Chatbot({
/>
<button
type="submit"
disabled={isLoading || input === ""}
className="absolute right-7 rounded-md bg-blue-400 p-1 text-white disabled:bg-opacity-0 disabled:text-gray-800"
disabled={disabled}
className={clsx(
"absolute right-7 rounded-md p-1 text-white disabled:bg-opacity-0 disabled:text-gray-800",
input.length === 0 ? "" : "bg-primary"
)}
>
<span>
<IoMdSend />
Expand Down

1 comment on commit 24bfc92

@vercel
Copy link

@vercel vercel bot commented on 24bfc92 Oct 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.