Skip to content

Commit 5ef5d9f

Browse files
refactor: format code for better readability in jsonSuccess and HeaderMenu components
1 parent 46d634b commit 5ef5d9f

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

apps/api/src/lib/http.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ export const jsonSuccess = <T, S extends ContentfulStatusCode>(
2929
c: Context<AppContext>,
3030
statusCode: S,
3131
data: T,
32-
) =>
33-
c.json(success(data, buildMeta(c)), statusCode);
32+
) => c.json(success(data, buildMeta(c)), statusCode);
3433

3534
export const jsonError = <S extends ContentfulStatusCode>(
3635
c: Context<AppContext>,

apps/web/components/header-menu.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,10 @@ export function HeaderMenu({
184184
? pathname === '/'
185185
: pathname === item.href || pathname?.startsWith(`${item.href}/`);
186186

187-
const itemClassName = cn('header-menu-link', isActive && 'header-menu-link--active');
187+
const itemClassName = cn(
188+
'header-menu-link',
189+
isActive && 'header-menu-link--active',
190+
);
188191
const itemContent = (
189192
<>
190193
<span className="flex items-center gap-3">

0 commit comments

Comments
 (0)