Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: change loader component #1410

Merged
merged 5 commits into from
Oct 27, 2023

Conversation

MentorPK
Copy link
Contributor

Pre-flight Checklist

Please ensure you've completed all of the following.

Description of Change

Motivation and Context

Suggesting this PR to swap out deprecated lib react-loader regarding issue #1284

Checklist

  • My pull request is properly named
  • The changes respect the code style of the project (pnpm prepare-code)
  • pnpm test passes
  • I tested/previewed my changes locally

Release Notes

@mcmxcdev
Copy link
Member

This is how the new loading indicator looks like:

Screencast.from.2023-10-20.09-57-42.webm

@mcmxcdev mcmxcdev marked this pull request as ready for review October 20, 2023 16:01
@mcmxcdev mcmxcdev requested a review from a team as a code owner October 20, 2023 16:01
Copy link
Member

@SpecialAro SpecialAro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! I still haven't tested but overall LGTM! Great work. I left some comments 😄

src/components/ui/loader/index.tsx Outdated Show resolved Hide resolved
MentorPK and others added 5 commits October 27, 2023 00:42
- remove redundant /index path from Loader imports in multiple files
- remove commented out braces in RecipesDashboard
- remove redundant color which is default from Loader in InfoBar
- update size of Loader in InfoBar to be the same as InfoBox
- change passed size prop from string to number in Button component
- add slight gap for FullscreenLoader to styles.ts
- fix Loader to check for color primary which is passed rather than brandColor
- remove hardcoded width and height from WorkspaceSwitchingIndicator which lead to elements not being vertically centered
- remove color prop from Loader in WorkspaceSwitchingIndicator since white is already the default
- remove switchingIndicator.spinnerColor from default theme since white is already the default
@SpecialAro SpecialAro force-pushed the feat/react-loader-spinner branch from 32cb42d to 52abc95 Compare October 26, 2023 23:43
Copy link
Member

@SpecialAro SpecialAro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you @MentorPK and @mcmxcdev

@SpecialAro
Copy link
Member

@all-contributors please add @MentorPK for code.

@allcontributors
Copy link
Contributor

@SpecialAro

I've put up a pull request to add @MentorPK! 🎉

@SpecialAro SpecialAro merged commit 78cb67c into ferdium:develop Oct 27, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants