I am building a site where a feature is a user can add their social accounts to their profile. I have the social media platforms (Insta, TikTok & Twitter) as option sets.
For design I have made it so when creating a new account you simply click on the relevant logo, this changes the state so the relevant image has a green hew around it.
My question is, how do I now make it so it inputs the correct platform into the database via this state? I could get it to work if I didn’t have the option sets, but I want that for future proofing.
PS: Sorry about mobile pictures, I’m currently out and had 10 minutes to kill so decided to try and sort this issue.