SpaceyaTech / SYT-Web-Redesign

https://www.spaceyatech.com/
Apache License 2.0
6 stars 23 forks source link

Add a loading spinner for components with loading states #140

Closed sonylomo closed 1 month ago

sonylomo commented 3 months ago

Description

Any instances of isLoading or isPending should have a <Loader/> component as part of it.

import { Loader } from "../../../../../components";

  {isLoading && (
    <div className="flex flex-col items-center justify-center gap-4 py-10">
      <Loader />
      <p className="text-lg font-medium text-primary">Loading event...</p>
    </div>
  )}

For reference, check out: src/APP/pages/community/sections/eventsSection/SingleEvents/SingleEvent.jsx

zidanegimiga commented 1 month ago

Is this issue still open?

sonylomo commented 1 month ago

This issue was resolved during the last sprint. ✅