Stirling-PDF/frontend/src
Ludy 02189a67bd
refactor(frontend): remove unused React default imports (#4529)
## Description of Changes

- Removed unused `React` default imports across multiple frontend
components.
- Updated imports to only include required React hooks and types (e.g.,
`useState`, `useEffect`, `Suspense`, `createContext`).
- Ensured consistency with React 17+ JSX transform, where default
`React` import is no longer required.
- This cleanup reduces bundle size slightly and aligns code with modern
React best practices.

---

## Checklist

### General

- [ ] I have read the [Contribution
Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md)
- [ ] I have read the [Stirling-PDF Developer
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md)
(if applicable)
- [ ] I have read the [How to add new languages to
Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md)
(if applicable)
- [ ] I have performed a self-review of my own code
- [ ] My changes generate no new warnings

### Documentation

- [ ] I have updated relevant docs on [Stirling-PDF's doc
repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/)
(if functionality has heavily changed)
- [ ] I have read the section [Add New Translation
Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md#add-new-translation-tags)
(for new translation tags only)

### UI Changes (if applicable)

- [ ] Screenshots or videos demonstrating the UI changes are attached
(e.g., as comments or direct attachments in the PR)

### Testing (if applicable)

- [ ] I have tested my changes locally. Refer to the [Testing
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md#6-testing)
for more details.

Co-authored-by: Reece Browne <74901996+reecebrowne@users.noreply.github.com>
2025-09-29 13:01:09 +01:00
..
assets Feature/v2/sign (#4485) 2025-09-26 19:11:03 +01:00
components refactor(frontend): remove unused React default imports (#4529) 2025-09-29 13:01:09 +01:00
constants style(frontend): standardize semicolons across TS/JS configs and components (#4525) 2025-09-29 12:55:53 +01:00
contexts refactor(frontend): remove unused React default imports (#4529) 2025-09-29 13:01:09 +01:00
data style(frontend): standardize semicolons across TS/JS configs and components (#4525) 2025-09-29 12:55:53 +01:00
hooks Feature/v2/sign (#4485) 2025-09-26 19:11:03 +01:00
i18n V2: Convert Tool (#3828) 2025-08-01 16:08:04 +01:00
pages Enable ESLint no-unused-vars rule (#4367) 2025-09-05 11:16:17 +00:00
services style(frontend): standardize semicolons across TS/JS configs and components (#4525) 2025-09-29 12:55:53 +01:00
styles Feature/toasts and error handling (#4496) 2025-09-25 21:03:53 +01:00
tests style(frontend): standardize semicolons across TS/JS configs and components (#4525) 2025-09-29 12:55:53 +01:00
theme Feature/toasts and error handling (#4496) 2025-09-25 21:03:53 +01:00
tools refactor(frontend): remove unused React default imports (#4529) 2025-09-29 13:01:09 +01:00
types refactor(types): deduplicate AutomateParameters definition in automation types (#4522) 2025-09-29 12:45:37 +01:00
utils style(frontend): standardize semicolons across TS/JS configs and components (#4525) 2025-09-29 12:55:53 +01:00
App.css Initial react set up 2025-05-09 20:01:09 +01:00
App.tsx refactor(frontend): remove unused React default imports (#4529) 2025-09-29 13:01:09 +01:00
global.d.ts Feature/v2/sign (#4485) 2025-09-26 19:11:03 +01:00
i18n.ts path (#4488) 2025-09-24 20:37:51 +01:00
index.css Basic footer structure and Cookie Consent (#4320) 2025-08-29 13:01:46 +00:00
index.tsx path (#4488) 2025-09-24 20:37:51 +01:00
logo.svg Initial react set up 2025-05-09 20:01:09 +01:00
output.css Mantine overhaul 2025-05-15 20:07:33 +01:00
reportWebVitals.js Initial react set up 2025-05-09 20:01:09 +01:00
setupTests.js Initial react set up 2025-05-09 20:01:09 +01:00
setupTests.ts style(frontend): standardize semicolons across TS/JS configs and components (#4525) 2025-09-29 12:55:53 +01:00