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:
1) Valid URL
2) 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.
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: 1) Valid URL 2) 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
Checklist: