diff --git a/src/App.tsx b/src/App.tsx index e3dcd93..53cfff0 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,4 +1,3 @@ -import { FC } from "react"; import { PreLoader } from "./components/PreLoader"; import "./index.css"; import MainLayout from "./layouts/MainLayout"; @@ -6,7 +5,7 @@ import { AppRouter } from "./router"; import { Router } from "./router/Router"; import { useAuth0 } from "./utils/auth0-spa"; -export const App: FC = () => { +export const App = () => { const { loading } = useAuth0(); return loading ? ( diff --git a/src/components/CardEntry.tsx b/src/components/CardEntry.tsx index 48df395..bbe6195 100644 --- a/src/components/CardEntry.tsx +++ b/src/components/CardEntry.tsx @@ -1,4 +1,3 @@ -import { FC } from "react"; import { Link } from "react-router-dom"; import { MealSummary } from "../types/meal"; @@ -7,22 +6,22 @@ type Props = { className?: string; }; -export const CardEntry: FC = ({ meal, className = "col s12 m6" }) => { - const { idMeal, strMeal, strMealThumb } = meal; - return ( - -
  • -
    -
    -
    - {strMeal} -
    -
    -

    {strMeal}

    -
    +export const CardEntry = ({ + meal: { idMeal, strMeal, strMealThumb }, + className = "col s12 m6", +}: Props) => ( + +
  • +
    +
    +
    + {strMeal} +
    +
    +

    {strMeal}

    -
  • - - ); -}; + + + +); diff --git a/src/components/CopyrightText.tsx b/src/components/CopyrightText.tsx index 70d0c54..8fd001f 100644 --- a/src/components/CopyrightText.tsx +++ b/src/components/CopyrightText.tsx @@ -1,8 +1,6 @@ -import { FC } from "react"; - -export const CopyrightText: FC = () => ( +export const CopyrightText = () => ( - © 2020 - Chef's - Made with{" "} + © {new Date().getFullYear()} - Chef's - Made with{" "} ❤️ diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index af71ab9..82de02f 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,10 +1,9 @@ -import { FC } from "react"; import { links } from "../constants"; import { CopyrightText } from "./CopyrightText"; import { FooterLink } from "./FooterLink"; import { GitHubLink } from "./GitHubLink"; -export const Footer: FC = () => { +export const Footer = () => { const footerLinks = [...links, "random"]; return (