SocialRepo
SocialRepo copied to clipboard
Add feature to update and create social links on save
Title
Add a feature to update and create social links on save
Description
When clicked on save it updates the respective value of the key in the socialLinks object. Updation passes through 2 checks:
- Valid URL
- Already have a link box on the home page -- It checks if the link we are updating already has a list box in the home panel. If the link box is already on the home page, it updates the respective key-value pair in the socialLinks object. Otherwise, it will create a new List Box by the createSocialLink function.
This helps to add only the unique links on the home page otherwise update the existing ones. Looking forward to merging the PR.
https://github.com/Param302/SocialRepo/assets/143412156/8851044c-0761-4f05-9f85-f6174dc78637
Issue Ticket Number
Fixes #57
Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
Checklist:
- [x] I have followed the contributing guidelines of this project as mentioned in CONTRIBUTING
- [x] I have checked to ensure there aren't other open Pull Requests for the same update/change?
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes needed to the documentation
@Param302 please review the PR and tell if any changes are to be made