Skip to content

Commit bf55e85

Browse files
coderabbit fix
1 parent d50a8db commit bf55e85

File tree

5 files changed

+11
-19
lines changed

5 files changed

+11
-19
lines changed

apps/desktop2/src/components/main/body/sessions/outer-header/share.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { Separator } from "@hypr/ui/components/ui/separator";
1212

1313
import { CircleMinus, Link2Icon, SearchIcon } from "lucide-react";
1414
import { useState } from "react";
15+
import { getInitials } from "../../contacts/shared";
1516

1617
interface Person {
1718
id: string;
@@ -72,15 +73,6 @@ export function ShareButton(_: { sessionId: string }) {
7273
console.log("Copy link");
7374
};
7475

75-
const getInitials = (name: string) => {
76-
return name
77-
.split(" ")
78-
.map((n) => n[0])
79-
.join("")
80-
.toUpperCase()
81-
.slice(0, 2);
82-
};
83-
8476
return (
8577
<Popover>
8678
<PopoverTrigger asChild>

apps/desktop2/src/components/main/sidebar/profile/banner.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function TryProBanner({ isDismissed, onDismiss }: { isDismissed: boolean;
99
onDismiss();
1010
};
1111

12-
const handleSignUp = () => {};
12+
const handleSignUp = () => { };
1313

1414
return (
1515
<AnimatePresence mode="wait">
@@ -61,7 +61,7 @@ export function TryProBanner({ isDismissed, onDismiss }: { isDismissed: boolean;
6161
onClick={handleSignUp}
6262
className="w-full"
6363
>
64-
Start 2 week Free Trial
64+
Start 1 week Free Trial
6565
</Button>
6666
</div>
6767
</motion.div>

apps/desktop2/src/components/main/sidebar/profile/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export function ProfileSection() {
151151
<NotificationsMenuHeader onClick={handleClickNotifications} />
152152
<UpdateChecker />
153153

154-
<div className="my-1.5 border-t border-slate-100" />
154+
<div className="my-1.5 border-t border-neutral-100" />
155155

156156
{menuItems.map((item) => <MenuItem key={item.label} {...item} />)}
157157

@@ -189,7 +189,7 @@ function ProfileButton({ isExpanded, onClick }: { isExpanded: boolean; onClick:
189189
"text-left",
190190
"transition-all duration-300",
191191
"hover:bg-gray-100",
192-
isExpanded && "bg-neutral-50 border-t border-slate-100",
192+
isExpanded && "bg-neutral-50 border-t border-neutral-100",
193193
)}
194194
onClick={onClick}
195195
>
@@ -217,10 +217,10 @@ function ProfileButton({ isExpanded, onClick }: { isExpanded: boolean; onClick:
217217
className={clsx(
218218
"hidden md:inline-block",
219219
"rounded-full",
220-
"border border-slate-900",
220+
"border border-neutral-900",
221221
"bg-white",
222222
"px-2.5 py-0.5",
223-
"text-[11px] font-medium text-slate-900",
223+
"text-[11px] font-medium text-neutral-900",
224224
)}
225225
>
226226
Pro trial
@@ -229,7 +229,7 @@ function ProfileButton({ isExpanded, onClick }: { isExpanded: boolean; onClick:
229229
className={clsx(
230230
"h-4 w-4",
231231
"transition-transform duration-300",
232-
isExpanded ? "rotate-180 text-slate-500" : "text-slate-400",
232+
isExpanded ? "rotate-180 text-neutral-500" : "text-neutral-400",
233233
)}
234234
/>
235235
</div>

packages/ui/src/components/block/event-chip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ function EventSearch({
264264
placeholder="Search past events..."
265265
value={searchQuery}
266266
onChange={(e) => onSearchChange?.(e.target.value)}
267-
className="w-full bg-transparent text-sm focus:outline-none placeholder:text-color3"
267+
className="w-full bg-transparent text-sm focus:outline-none placeholder:text-neutral-500"
268268
/>
269269
</div>
270270

packages/ui/src/components/block/meeting-metadata-chip.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ function ParticipantsSection({
313313
setTimeout(() => setIsFocused(false), 200);
314314
}}
315315
placeholder="Add participant"
316-
className="w-full bg-transparent text-sm focus:outline-none placeholder:text-color3"
316+
className="w-full bg-transparent text-sm focus:outline-none placeholder:text-neutral-500"
317317
/>
318318
{searchQuery.trim() && (
319319
<button
@@ -322,7 +322,7 @@ function ParticipantsSection({
322322
handleSelectParticipant(searchResults[selectedIndex].id);
323323
}
324324
}}
325-
className="text-neutral-700 neutral-700transition-colors flex-shrink-0"
325+
className="text-neutral-700 transition-colors flex-shrink-0"
326326
>
327327
<CornerDownLeft className="size-4" />
328328
</button>

0 commit comments

Comments
 (0)