806 make copyablechip also linkable #827
Open
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 changes to the
CopyableChip
component to add redirection functionality and minor updates to other files to accommodate these changes. The most important changes include renaming the component, adding optional URL handling, and updating related files.Enhancements to
CopyableChip
component:src/components/CopyableChip.tsx
: RenamedCopyableChip
toCopyableChipRedirection
and added optionalurl
prop to handle redirection. ImplementedhandleLaunch
function to navigate to the specified URL when the new launch icon is clicked. [1] [2] [3] [4]Updates to related files:
src/features/multimd/MultiMDJobDBDetails.tsx
: Updated usage ofCopyableChip
toCopyableChipRedirection
and included a placeholder for theurl
prop.src/features/users/__tests__/EditUser.test.tsx
: Modified test to useexpect.anything()
for the second argument ofEditUserForm
to make the test more flexible.