Skip to content

Commit 5972be2

Browse files
committed
fix: build errors
1 parent 4aba95e commit 5972be2

4 files changed

Lines changed: 22 additions & 2 deletions

File tree

react-katex.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
declare module 'react-katex' {
2+
import { ComponentType } from 'react';
3+
4+
export interface BlockMathProps {
5+
math: string;
6+
errorColor?: string;
7+
renderError?: (error: Error) => React.ReactNode;
8+
}
9+
10+
export interface InlineMathProps {
11+
math: string;
12+
errorColor?: string;
13+
renderError?: (error: Error) => React.ReactNode;
14+
}
15+
16+
export const BlockMath: ComponentType<BlockMathProps>;
17+
export const InlineMath: ComponentType<InlineMathProps>;
18+
}
19+

src/components/quizz/EventStudyTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ export const EventStudyTable = ({ showSparkline = false }: EventStudyTableProps)
273273
style={
274274
isInStabilizationZone
275275
? {
276-
textShadow: `0 0 4px ${COLORS.cccccc}`,
276+
textShadow: `0 0 4px ${COLORS.silver}`,
277277
}
278278
: {}
279279
}

src/components/quizz/FormulaScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ export const FormulaScreen = ({ onNext, onBack }: FormulaScreenProps) => {
323323

324324
<SectionTitle variant='h6'>{'>'} UNDERSTANDING THE VARIABLES</SectionTitle>
325325

326-
<TableCard component={Paper}>
326+
<TableCard>
327327
<Table size='small'>
328328
<TableBody>
329329
<TableRow>

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"./src",
3131
"./dist/types/**/*.ts",
3232
"./next-env.d.ts",
33+
"./react-katex.d.ts",
3334
"./test/**/*.ts",
3435
"./tests/**/*.ts",
3536
"./playwright.config.ts",

0 commit comments

Comments
 (0)