Skip to content

Commit

Permalink
Remove unwanted code
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadyShawkat committed Feb 2, 2022
1 parent 0c73808 commit fd93803
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions src/components/Home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,14 @@ import { FcGlobe } from 'react-icons/fc';

import Spinner from '../Spinner/Spinner';
import ContinentList from '../ContinentList/ContinentList';
// import CountryList from '../CountryList/CountryList';

const Home = () => {
// const {
// countries,
// totalData: { totalCases, totalDeaths },
// } = useSelector((state) => state.covid);
const {
continents,
totalData: { totalCases, totalDeaths },
} = useSelector((state) => state.covid);

return (
// <>
// {!countries.length && <Spinner />}
// {countries.length > 0 && (
// <>
// <div className="flex gap-3 items-center w-full justify-center
// pb-16 pt-6 bg-blue-dark rounded-t-lg">
// <FcGlobe className="text-8xl bg-white rounded-full" />
// <div className="flex flex-col font-bold text-2xl text-white">
// <CountUp
// delay={1}
// end={totalCases}
// separator=","
// prefix="Total Cases: "
// duration={3}
// />
// <CountUp
// delay={1}
// prefix="Total Deaths: "
// end={totalDeaths}
// separator=","
// duration={3}
// />
// </div>
// </div>
// <CountryList countries={countries} />
// </>
// )}
// </>
<>
{!continents.length && <Spinner />}
{continents.length > 0 && (
Expand Down

0 comments on commit fd93803

Please sign in to comment.