Skip to content

[Refactor] JS Extension and Typings Warning in BackToTop.jsx #236

@Aditya948351

Description

@Aditya948351

Severity

Beginner

Affected File

src/components/BackToTop.jsx

Detailed Description

The scroll component is implemented as a .jsx file, which is the only Javascript extension component inside a fully configured TypeScript Next.js layout, causing compile warnings and missing prop type definitions during production builds.

Proposed Solution

Rename the file extension to .tsx and add proper type signatures for React hook elements.

Metadata

Metadata

Assignees

Labels

gssoc26This is a official GirlScript Summer of Code label.level:beginnerBeginner level issuestype:refactor

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions