Skip to content
This repository was archived by the owner on Jul 29, 2025. It is now read-only.

Commit f192234

Browse files
committed
fixes broken example questions
1 parent 940575d commit f192234

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/frontend/src/components/Example/Example.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Limitations: string[] = [
2020

2121
interface Props {
2222
exampleType: string;
23-
onClick: (exampleType: string) => void;
23+
onClick: (question: string) => void;
2424
}
2525

2626
export const Example = ({ exampleType, onClick }: Props) => {

app/frontend/src/components/Example/ExampleList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const ExampleList = ({ onExampleClicked }: Props) => {
3636
<ul className={styles.examplesNavList}>
3737
{Types.map((value, i) => (
3838
<li key={i}>
39-
<Example exampleType={value} onClick={() => handleClick(value)} />
39+
<Example exampleType={value} onClick={handleClick} />
4040
</li>
4141
))}
4242
</ul>

0 commit comments

Comments
 (0)