Skip to content

Commit 5025161

Browse files
Fix PR build validation
1 parent d879116 commit 5025161

3 files changed

Lines changed: 28 additions & 6 deletions

File tree

src/components/Analysis/Highlight.tsx

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ export const Highlight: React.FC<Props> = ({
360360
const compactTitleRowClass = 'grid h-11 place-items-center'
361361
const splitTitleRowClass = 'grid h-12 place-items-center'
362362
const compactTitleTextClass = 'text-sm font-semibold leading-none'
363-
const splitTitleTextClass = 'text-sm font-semibold leading-none md:text-xxs lg:text-xs'
363+
const splitTitleTextClass =
364+
'text-sm font-semibold leading-none md:text-xxs lg:text-xs'
364365
const stockfishDepth = moveEvaluation?.stockfish?.depth
365366
const stockfishDepthLabel = stockfishDepth ? `d${stockfishDepth}` : null
366367
const openMaiaHeaderPicker = () => {
@@ -398,7 +399,9 @@ export const Highlight: React.FC<Props> = ({
398399
>
399400
<div
400401
className={`relative w-full border-b border-white/5 ${
401-
useCompactMobileColumnTitles ? compactTitleRowClass : splitTitleRowClass
402+
useCompactMobileColumnTitles
403+
? compactTitleRowClass
404+
: splitTitleRowClass
402405
}`}
403406
>
404407
{isHomePage ? (
@@ -500,7 +503,9 @@ export const Highlight: React.FC<Props> = ({
500503
{!useCompactMobileColumnTitles && (
501504
<p
502505
className={`whitespace-nowrap text-sm font-semibold text-human-2 ${
503-
simplified ? 'mb-0.5 text-sm leading-tight' : 'mb-1 md:text-xxs lg:text-xs'
506+
simplified
507+
? 'mb-0.5 text-sm leading-tight'
508+
: 'mb-1 md:text-xxs lg:text-xs'
504509
}`}
505510
>
506511
Human Moves
@@ -555,7 +560,9 @@ export const Highlight: React.FC<Props> = ({
555560
>
556561
<div
557562
className={`w-full border-b border-white/5 ${
558-
useCompactMobileColumnTitles ? compactTitleRowClass : splitTitleRowClass
563+
useCompactMobileColumnTitles
564+
? compactTitleRowClass
565+
: splitTitleRowClass
559566
}`}
560567
>
561568
<p
@@ -571,7 +578,7 @@ export const Highlight: React.FC<Props> = ({
571578
: 'Stockfish 17'}
572579
</span>
573580
{stockfishDepthLabel && (
574-
<span className="leading-none text-[10px] font-normal text-engine-2/75 md:text-[9px] lg:text-[10px]">
581+
<span className="text-[10px] font-normal leading-none text-engine-2/75 md:text-[9px] lg:text-[10px]">
575582
{stockfishDepthLabel}
576583
</span>
577584
)}
@@ -599,7 +606,9 @@ export const Highlight: React.FC<Props> = ({
599606
{!useCompactMobileColumnTitles && (
600607
<p
601608
className={`whitespace-nowrap text-sm font-semibold text-engine-2 ${
602-
simplified ? 'mb-0.5 text-sm leading-tight' : 'mb-1 md:text-xxs lg:text-xs'
609+
simplified
610+
? 'mb-0.5 text-sm leading-tight'
611+
: 'mb-1 md:text-xxs lg:text-xs'
603612
}`}
604613
>
605614
Engine Moves

src/lib/posthog.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// This package is server-only and not always present in local type resolution.
2+
// eslint-disable-next-line import/no-unresolved
13
import { PostHog } from 'posthog-node'
24

35
// NOTE: This is a Node.js client for sending events from the server side to PostHog.

src/types/posthog-node.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
declare module 'posthog-node' {
2+
export interface PostHogOptions {
3+
host?: string
4+
flushAt?: number
5+
flushInterval?: number
6+
}
7+
8+
export class PostHog {
9+
constructor(apiKey: string, options?: PostHogOptions)
10+
}
11+
}

0 commit comments

Comments
 (0)