feat(profile/socials): update styles #158
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the social profile components in the application, focusing on refactoring and improving the codebase. The most important changes include the removal of redundant imports and constants, the addition of a new utility for social media colors and icons, and the enhancement of the UI elements for better user experience.
Refactoring and Code Simplification:
Social.jsx
andSocials.jsx
, includinguseThemeStore
,Image
, and hardcoded color values. (client/app/(profiles)/profile/[slug]/components/sections/Social.jsxL3-L30, client/app/(profiles)/profile/[slug]/edit/components/Socials.jsxL3-L39)Utility Enhancements:
colors.js
utility to centralize social media colors.getIcon.js
utility to centralize social media icons.UI Improvements:
Social.jsx
component to use the newgetIcon
andcolors
utilities, and improved the styling of social links. (client/app/(profiles)/profile/[slug]/components/sections/Social.jsxL54-R68)Socials.jsx
component to use the newgetIcon
andcolors
utilities, added a loading spinner for delete actions, and improved the styling of social links and buttons. (client/app/(profiles)/profile/[slug]/edit/components/Socials.jsxL54-L55, client/app/(profiles)/profile/[slug]/edit/components/Socials.jsxR113-R117, client/app/(profiles)/profile/[slug]/edit/components/Socials.jsxR127-R135, client/app/(profiles)/profile/[slug]/edit/components/Socials.jsxL169-R220, client/app/(profiles)/profile/[slug]/edit/components/Socials.jsxL251-R231, client/app/(profiles)/profile/[slug]/edit/components/Socials.jsxL263-R243, client/app/(profiles)/profile/[slug]/edit/components/Socials.jsxL273-R261)Minor Fixes:
VerifiedBadge
component to simplify the design. (client/app/(profiles)/profile/[slug]/edit/components/VerifiedBadge.jsxL11-R11)