Skip to content

Commit

Permalink
Merge pull request #108 from FleetAdmiralJakob/use-badge-component
Browse files Browse the repository at this point in the history
refactor(chat-overview): use the badge component
  • Loading branch information
Gamius00 authored May 12, 2024
2 parents 9473323 + 55d22e2 commit c8f4c38
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/components/homepage/chat-overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import { api } from "../../../convex/_generated/api";
import { useUser } from "@clerk/nextjs";
import { useEffect, useState } from "react";
import { type FunctionReturnType } from "convex/server";
import { Check, MousePointerClick, NotebookText } from "lucide-react";
import { MousePointerClick, NotebookText } from "lucide-react";
import { Avatar, AvatarFallback } from "../ui/avatar";
import Badge from "~/components/ui/badge";

type Chats = FunctionReturnType<typeof api.chats.getChats>;

Expand Down Expand Up @@ -71,10 +72,7 @@ const Chats: React.FC = () => {
<AvatarFallback>C</AvatarFallback>
</Avatar>
<p className="text-xl font-bold">Chat.io</p>
<p className="flex rounded-sm bg-blue-400 p-1 pr-2 text-sm font-medium">
{" "}
<Check className="h-5" /> Support
</p>
<Badge>Support</Badge>
<div className="absolute ml-60 mt-20">
<MousePointerClick className="mb-1 ml-6 animate-pulse" />
<p>Click here</p>
Expand Down Expand Up @@ -107,10 +105,7 @@ const Chats: React.FC = () => {
) : (
<p className="flex">
<p>My Notes</p>
<p className=" ml-2.5 flex rounded-sm bg-blue-400 p-1 pr-2 text-sm font-medium">
{" "}
<Check className="h-5" /> Tool
</p>
<Badge>Tool</Badge>
</p>
)}
</p>
Expand Down

0 comments on commit c8f4c38

Please sign in to comment.