Skip to content

Conversation

@flacial
Copy link
Member

@flacial flacial commented Sep 4, 2022

Closes #2243

Merging this PR will add the ability for the user link/unlink their discord account from the profile page.

To test it:

  1. Go to /profile/YOUR_USERNAME or admin
  2. Click unlink discord if you already connected your account or connect to discord
  3. Confirm the action from the modal

Once the user unlink their account, the page reloads to load the new user data from the db (e.g., removing their profile picture).

@vercel
Copy link

vercel bot commented Sep 4, 2022

@flacial is attempting to deploy a commit to the c0d3-prod Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Sep 4, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
c0d3-app ✅ Ready (Inspect) Visit Preview Sep 7, 2022 at 0:02AM (UTC)

@codecov
Copy link

codecov bot commented Sep 4, 2022

Codecov Report

Merging #2259 (ff928ed) into master (9912c74) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #2259   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          177       177           
  Lines         2990      3010   +20     
  Branches       801       801           
=========================================
+ Hits          2990      3010   +20     
Impacted Files Coverage Δ
components/ProfileImageInfo.tsx 100.00% <100.00%> (ø)

</ModalFooter>
</Modal>
</>
) : (
Copy link
Collaborator

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?

Copy link
Member Author

@flacial flacial Sep 7, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add the ability to unlink a discord account

3 participants