diff --git a/client/src/assets/icons/FreeCodeCamp-logo.tsx b/client/src/assets/icons/FreeCodeCamp-logo.tsx index ff223b69ef..1e1a28f832 100644 --- a/client/src/assets/icons/FreeCodeCamp-logo.tsx +++ b/client/src/assets/icons/FreeCodeCamp-logo.tsx @@ -1,18 +1,17 @@ import React from 'react'; -import { useTranslation } from 'react-i18next'; - -function FreeCodeCampLogo(): JSX.Element { - const { t } = useTranslation(); +function FreeCodeCampLogo( + props: JSX.IntrinsicAttributes & React.SVGProps +): JSX.Element { return ( {
- +
diff --git a/client/src/components/Header/components/nav-logo.tsx b/client/src/components/Header/components/nav-logo.tsx index ace653c28c..94111b149c 100644 --- a/client/src/components/Header/components/nav-logo.tsx +++ b/client/src/components/Header/components/nav-logo.tsx @@ -1,8 +1,10 @@ import React from 'react'; +import { useTranslation } from 'react-i18next'; import FreeCodeCampLogo from '../../../assets/icons/FreeCodeCamp-logo'; const NavLogo = (): JSX.Element => { - return ; + const { t } = useTranslation(); + return ; }; NavLogo.displayName = 'NavLogo';