Skip to content
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

Fix social icon in UserAccount #74

Open
alekseevaiana opened this issue Jul 18, 2023 · 1 comment
Open

Fix social icon in UserAccount #74

alekseevaiana opened this issue Jul 18, 2023 · 1 comment

Comments

@alekseevaiana
Copy link
Member

Social icon is already exists in UserAccount component code, but we need to make sure it is showing.

Screenshot 2023-07-17 at 5 03 44 PM

Social logo gets from useSocialLogo hook.
We have to change return values to upper case in hooks/useSocialLogo.ts

const useSocialLogo = (session: Session | null) => {
  const id = session && session?.user?.id;
  if (id?.includes("GOOGLE")) {
    return "google";
  } else if (id?.includes("DISCORD")) {
    return "discord";
  } else if (id?.includes("TWITTER")) {
    return "twitter";
  } else if (id?.includes("TWITCH")) {
    return "twitch";
  } else if (id?.includes("REDDIT")) {
    return "reddit";
  } else if (id?.includes("CHESS")) {
    return "chess";
  } 
  else return null;
};
@alekseevaiana alekseevaiana added ch-15 and removed ch-15 labels Jul 18, 2023
@pi0neerpat
Copy link
Member

Done! pushed to main #840390bc36ce7

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

No branches or pull requests

2 participants