fixes for TypeScript 5.0

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-03-25 15:30:22 +01:00
parent cc0e135cb9
commit 2898b6c8d5
22 changed files with 72 additions and 45 deletions
@@ -59,7 +59,7 @@ export const Content = (props: StackOverflowQuestionsContentProps) => {
return <Typography paragraph>could not load questions</Typography>;
}
const getSecondaryText = (answer_count: Number) =>
const getSecondaryText = (answer_count: number) =>
answer_count > 1 ? `${answer_count} answers` : `${answer_count} answer`;
return (