better error handling

This commit is contained in:
Joeri Exelmans 2025-05-27 12:44:57 +02:00
parent 7edf44f107
commit 428e8cd298
8 changed files with 66 additions and 34 deletions

View file

@ -161,7 +161,6 @@ export function InputBlock({ state, setState, score, onCancel, typeInfo }: Input
i={i} setI={setI} />
</span>
</Input>
{/* ::<TypeBlock type={typeInfo.type} /> */}
::<TypeInfoBlock typeInfo={typeInfo} />
</>
}
@ -201,7 +200,7 @@ function Suggestion({ setI, j, onSelect, highlighted, suggestion: [priority, typ
onMouseEnter={onMouseEnter(j)}
onMouseDown={onMouseDown(j)}>
({priority}) ({kind}) {text} :: <TypeBlock type={type} />
</div>
</div>;
}
const SuggestionMemo = memo<SuggestionProps>(Suggestion);