Skip to content

[client] Extract inline Skeleton component out of RafflePage #767

Description

@Otaiki1

Summary

RafflePage.tsx defines a local Skeleton component at the top of the file:

const Skeleton = ({ className }: { className?: string }) => (
  <div className={`animate-pulse bg-gray-200 dark:bg-white/5 rounded-2xl ${className}`} />
);

The project already has client/src/components/ui/Skeleton.tsx. Keeping a local copy silently diverges styles.

What to do

  1. Verify Skeleton.tsx in components/ui/ accepts a className prop with the same semantics.
  2. Replace the inline definition in RafflePage.tsx with an import from components/ui/Skeleton.
  3. Check every other page and component for similar inline skeleton definitions and consolidate them.

Acceptance criteria

  • No file in client/src/pages/ defines a local Skeleton component.
  • The canonical ui/Skeleton is used everywhere.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveFull ecosystem refactor initiative

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions