react-icons/fa#FaWhatsapp JavaScript Examples

The following examples show how to use react-icons/fa#FaWhatsapp. 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.jsx    From roomie-frontend with MIT License 6 votes vote down vote up
ProfileInfo = ({ _id, avatar, firstname, lastname, about, whatsapp, contactEmail }) => {
  const customMessage = `Hello ${firstname}, I want to be your roomie! :)`;

  return (
    <Info>
      <Img src={avatar} alt='Imagen del profile' />
      <Link to={`/profile/${_id}`}>
        <h3>{`${firstname} ${lastname}`}</h3>
      </Link>
      <About>{`${about}`}</About>
      <p>Contact:</p>
      <ContactWrapper>
        <ContactButton target='_blank' href={`https://wa.me/${whatsapp}/?text=${customMessage}`}>
          <FaWhatsapp size='25px' />
        </ContactButton>
        <ContactButton target='_blank' href={`mailto:${contactEmail}`}>
          <Email size='25px' />
        </ContactButton>
      </ContactWrapper>
    </Info>
  );
}