chore(frontend): improve code formatting for readability
Standardize multiline formatting across components, tests, and API hooks for better consistency and clarity: - Adjusted function and object property indentation. - Updated tests and components to align with clean coding practices.
This commit is contained in:
@@ -118,10 +118,7 @@ export function RecentProjects({ projects, isLoading = false, className }: Recen
|
||||
{isLoading ? (
|
||||
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
|
||||
{[1, 2, 3, 4, 5, 6].map((i) => (
|
||||
<div
|
||||
key={i}
|
||||
className={cn(i > 3 && 'hidden lg:block')}
|
||||
>
|
||||
<div key={i} className={cn(i > 3 && 'hidden lg:block')}>
|
||||
<ProjectCardSkeleton />
|
||||
</div>
|
||||
))}
|
||||
@@ -138,10 +135,7 @@ export function RecentProjects({ projects, isLoading = false, className }: Recen
|
||||
) : (
|
||||
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
|
||||
{displayProjects.map((project, index) => (
|
||||
<div
|
||||
key={project.id}
|
||||
className={cn(index >= 3 && 'hidden lg:block')}
|
||||
>
|
||||
<div key={project.id} className={cn(index >= 3 && 'hidden lg:block')}>
|
||||
<ProjectCard project={project} />
|
||||
</div>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user