-
Notifications
You must be signed in to change notification settings - Fork 70
Add the ability to unlink discord from user profile page #2259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
For some reason, when using the modal child components `Modal.*` (`Modal.Body`) it make our storybook tests fail with "Expect string or class but got undefined"
|
@flacial is attempting to deploy a commit to the c0d3-prod Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
@@ Coverage Diff @@
## master #2259 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 177 177
Lines 2990 3010 +20
Branches 801 801
=========================================
+ Hits 2990 3010 +20
|
| </ModalFooter> | ||
| </Modal> | ||
| </> | ||
| ) : ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a general suggestion. Would it be a good idea to have the above(what's shown if user already has discord linked) and below(shown if user doesn't have discord linked), as their own separate components, then pass in the function and states like show, handleUnlinkClick, handleConnectClick, etc as props?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great suggestion, I'll update the code!
Closes #2243
Merging this PR will add the ability for the user link/unlink their discord account from the profile page.
To test it:
/profile/YOUR_USERNAME or adminunlinkdiscord if you already connected your account orconnect to discordOnce the user unlink their account, the page reloads to load the new user data from the db (e.g., removing their profile picture).