Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Fix social icon in UserAccount #74

Description

@alekseevaiana

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;
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions