diff --git a/services/frontend/.eslintrc.json b/services/frontend/.eslintrc.json index 1d982d9de3..ec8f94caf5 100644 --- a/services/frontend/.eslintrc.json +++ b/services/frontend/.eslintrc.json @@ -29,9 +29,10 @@ "project": ["./services/frontend/tsconfig.json", "./services/frontend/tsconfig.node.json"] }, "rules": { - "import/prefer-default-export": "off", "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/no-unnecessary-type-assertion": "error" + "@typescript-eslint/no-unnecessary-type-assertion": "error", + "import/prefer-default-export": "off", + "react/require-default-props": "off" } } ], diff --git a/services/frontend/src/components/InfoBox/InfoBoxButton.jsx b/services/frontend/src/components/InfoBox/InfoBoxButton.tsx similarity index 56% rename from services/frontend/src/components/InfoBox/InfoBoxButton.jsx rename to services/frontend/src/components/InfoBox/InfoBoxButton.tsx index b2aff2e95c..7540dea3ad 100644 --- a/services/frontend/src/components/InfoBox/InfoBoxButton.jsx +++ b/services/frontend/src/components/InfoBox/InfoBoxButton.tsx @@ -1,12 +1,17 @@ import { Button, Icon } from 'semantic-ui-react' -export const InfoBoxButton = ({ cypress, toggleOpen }) => { +interface InfoBoxButtonProps { + cypress?: string + toggleOpen?: () => void +} + +export const InfoBoxButton = ({ cypress, toggleOpen }: InfoBoxButtonProps) => { return (