Skip to content

Commit 9334703

Browse files
committed
format
1 parent f547a4a commit 9334703

3 files changed

Lines changed: 33 additions & 17 deletions

File tree

apps/app/app/(routes)/orgs/[slug]/apps/[id]/chats/layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default function ChatsLayout({
4848
"relative flex flex-col gap-2 bg-secondary overflow-hidden rounded-xl transition-all duration-200",
4949
isFullscreen
5050
? "fixed inset-0 z-50 h-screen w-screen rounded-none p-4 sm:p-6 shadow-2xl"
51-
: "h-full w-full p-2"
51+
: "h-full w-full p-2",
5252
);
5353

5454
return (
@@ -83,7 +83,7 @@ export default function ChatsLayout({
8383
"flex flex-col overflow-hidden rounded-xl bg-secondary p-1 transition-all",
8484
isFullscreen
8585
? "mr-0 max-h-[var(--chat-window-max-height,100vh)]"
86-
: "mr-2 max-h-[70dvh]"
86+
: "mr-2 max-h-[70dvh]",
8787
)}
8888
>
8989
<ConvoPanel />
@@ -94,7 +94,7 @@ export default function ChatsLayout({
9494
minSize={isFullscreen ? 45 : 60}
9595
className={cn(
9696
"flex h-full flex-col overflow-hidden rounded-xl bg-secondary transition-all",
97-
isFullscreen ? "ml-0" : "ml-2"
97+
isFullscreen ? "ml-0" : "ml-2",
9898
)}
9999
>
100100
<div
Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
1-
"use client"
1+
"use client";
22

33
interface ChatMessageProps {
4-
text: string
5-
sender: "user" | "other"
6-
timestamp: string
7-
avatar?: string
8-
name?: string
4+
text: string;
5+
sender: "user" | "other";
6+
timestamp: string;
7+
avatar?: string;
8+
name?: string;
99
}
1010

11-
export default function ChatMessage({ text, sender, timestamp, avatar, name }: ChatMessageProps) {
12-
const isUser = sender === "user"
11+
export default function ChatMessage({
12+
text,
13+
sender,
14+
timestamp,
15+
avatar,
16+
name,
17+
}: ChatMessageProps) {
18+
const isUser = sender === "user";
1319

1420
return (
15-
<div className={`flex gap-3 mb-2 ${isUser ? "justify-end" : "justify-start"}`}>
21+
<div
22+
className={`flex gap-3 mb-2 ${isUser ? "justify-end" : "justify-start"}`}
23+
>
1624
{/* Avatar for received messages */}
1725
{!isUser && avatar && (
1826
<img
@@ -23,8 +31,14 @@ export default function ChatMessage({ text, sender, timestamp, avatar, name }: C
2331
)}
2432

2533
{/* Message Bubble */}
26-
<div className={`flex max-w-[20rem] flex-col ${isUser ? "items-end" : "items-start"}`}>
27-
{!isUser && name && <span className="mb-0.5 text-sm font-semibold text-foreground">{name}</span>}
34+
<div
35+
className={`flex max-w-[20rem] flex-col ${isUser ? "items-end" : "items-start"}`}
36+
>
37+
{!isUser && name && (
38+
<span className="mb-0.5 text-sm font-semibold text-foreground">
39+
{name}
40+
</span>
41+
)}
2842
<div
2943
className={`rounded-xl px-3 py-1.5 text-xs shadow-sm ${
3044
isUser
@@ -34,8 +48,10 @@ export default function ChatMessage({ text, sender, timestamp, avatar, name }: C
3448
>
3549
{text}
3650
</div>
37-
<span className="mt-0.5 text-xs text-muted-foreground">{timestamp}</span>
51+
<span className="mt-0.5 text-xs text-muted-foreground">
52+
{timestamp}
53+
</span>
3854
</div>
3955
</div>
40-
)
56+
);
4157
}

apps/app/components/custom/empty/inbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export function EmptyInbox() {
188188
<Button
189189
type="submit"
190190
onClick={handleInboxCreation}
191-
disabled={isMaintenanceModeEnabled}
191+
// disabled={isMaintenanceModeEnabled}
192192
>
193193
Create Inbox
194194
</Button>

0 commit comments

Comments
 (0)