react-icons/fa#FaUserEdit JavaScript Examples

The following examples show how to use react-icons/fa#FaUserEdit. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.js    From FinDevs with MIT License 5 votes vote down vote up
function DevProfile({ dev, logout, handleHide }) {
  return (
    <>
      <Container>
        <img src={dev.avatar_url} alt={dev.github_user} />
        <h1>{dev.name}</h1>
        <a href={`http://github.com/${dev.github_user}`} target="blank">
          <h3>
            @
            {dev.github_user}
          </h3>
        </a>
        <p>{dev.bio}</p>
        <DevTechs>
          <p>
            { dev.techs ? dev.techs.join(', ') : 'Loading'}
          </p>

        </DevTechs>

        <Buttons>
          <div>
            <button
              onClick={() => {
                alert('This feat is under construction for now!');
              }}
            >
              <FaUserEdit />
            </button>
            <p>Edit Profile</p>
          </div>

          <div>
            <button
              onClick={handleHide}
            >
              <FaEyeSlash />
              {' '}
            </button>
            <p>Hide Yourself</p>
          </div>
          <div>
            <button
              onClick={logout}
            >
              <FaSignOutAlt />
              {' '}
            </button>
            <p>SignOut</p>
          </div>
        </Buttons>
      </Container>
    </>
  );
}