feat(platform): Add CopySVG icon to the Slug component and update imports #677
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.
User description
Description
This pull request includes changes to add a copy icon to the
Slug
component and improve its styling. The most important changes include importing theCopySVG
icon, updating theSlug
component to use this icon, and modifying the button's styling to enhance user interaction.Icon Import and Usage:
apps/platform/public/svg/shared/index.ts
: AddedCopySVG
to the list of imported SVGs and exported it for use in other components. [1] [2]apps/platform/src/components/common/slug.tsx
: ImportedCopySVG
and updated theSlug
component to include theCopySVG
icon next to the text. [1] [2]Styling Improvements:
apps/platform/src/components/common/slug.tsx
: Modified the button's class to includecursor-copy
,gap-2
, andhover:bg-white/15
for better visual feedback and spacing.Mentions
@rajdip-b @poswalsameer
Screenshots of relevant screens
forgot to click one, but trust me you will love it
Developer's checklist
If changes are made in the code:
Documentation Update
PR Type
Enhancement
Description
Added
CopySVG
icon to theSlug
component.Updated
Slug
component styling for better user interaction.Imported and exported
CopySVG
in shared SVG index.Changes walkthrough 📝
index.ts
Add `CopySVG` to shared SVG index
apps/platform/public/svg/shared/index.ts
CopySVG
import and export to shared SVG index.CopySVG
.slug.tsx
Update `Slug` component with `CopySVG` and styling
apps/platform/src/components/common/slug.tsx
CopySVG
for use in theSlug
component.Slug
component styling with new classes.CopySVG
icon next to the text in the button.