chore: replace prettier with oxfmt (#8676)

This commit is contained in:
sriram veeraghanta 2026-03-02 20:40:50 +05:30 committed by GitHub
parent 9ee73d57ef
commit 41abaffc6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
1008 changed files with 4046 additions and 4027 deletions

View file

@ -28,13 +28,13 @@ export function LinkItemBlock(props: TLinkItemBlockProps) {
return (
<div
onClick={onClick}
className="cursor-pointer group flex items-center bg-surface-1 px-4 w-[230px] h-[56px] border-[0.5px] border-subtle rounded-md gap-4"
className="group flex h-[56px] w-[230px] cursor-pointer items-center gap-4 rounded-md border-[0.5px] border-subtle bg-surface-1 px-4"
>
<div className="flex-shrink-0 size-8 rounded-sm p-2 bg-surface-2 grid place-items-center">
<div className="grid size-8 flex-shrink-0 place-items-center rounded-sm bg-surface-2 p-2">
<Icon className="size-4 stroke-2 text-tertiary group-hover:text-primary" />
</div>
<div className="flex-1 truncate">
<div className="text-13 font-medium truncate">{title}</div>
<div className="truncate text-13 font-medium">{title}</div>
{createdAt && <div className="text-11 font-medium text-placeholder">{calculateTimeAgo(createdAt)}</div>}
</div>
{menuItems && (
@ -48,7 +48,7 @@ export function LinkItemBlock(props: TLinkItemBlockProps) {
e.stopPropagation();
item.action();
}}
className={cn("flex items-center gap-2 w-full ", {
className={cn("flex w-full items-center gap-2", {
"text-placeholder": item.disabled,
})}
disabled={item.disabled}
@ -58,7 +58,7 @@ export function LinkItemBlock(props: TLinkItemBlockProps) {
<h5>{item.title}</h5>
{item.description && (
<p
className={cn("text-tertiary whitespace-pre-line", {
className={cn("whitespace-pre-line text-tertiary", {
"text-placeholder": item.disabled,
})}
>