TheVicky1 / TheVicky1/Pact_OS

refactor: export modal motion transition variants in modal component

Open Beginner friendly
#42 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:ui beginner friendly bug community contributions-welcome difficulty:beginner enhancement good first issue help wanted type:refactor up-for-grabs
Dominant language
TypeScript
Stars
5
Forks
7
Avg merge
39m
Merged PRs (30d)
39

Description

🎯 What needs to be done

In src/components/ui/modal.tsx, export the backdrop and modal card Framer Motion animation transition variants as named constants (MODAL_BACKDROP_VARIANTS and MODAL_CONTENT_VARIANTS).

Why this matters

Allows custom dialogs and drawers across PACT to reuse identical easing curves and spring physics without code duplication.

📍 Where to work

src/components/ui/modal.tsx

🧭 Implementation guidance

  1. Open src/components/ui/modal.tsx.
  2. Find the motion variant objects defined inside or above Modal.
  3. Add export const to make them reusable by other components.
  4. Verify TypeScript and ESLint pass.

✅ Acceptance criteria

  • Modal transition variants exported as named constants.
  • TypeScript check passes with 0 errors.

🧪 Verification

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open src/components/ui/modal.tsx and locate the backdrop and modal card Framer Motion variant objects. Export them as the named constants MODAL_BACKDROP_VARIANTS and MODAL_CONTENT_VARIANTS, preserving their existing transition behavior. Run the TypeScript check and ESLint; done means both variants are reusable exports and TypeScript passes with zero errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Refactor
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
92/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.