react-icons/md#MdLocationOn JavaScript Examples

The following examples show how to use react-icons/md#MdLocationOn. 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: MsgDetailAddressBox.js    From airdnd-frontend with MIT License 5 votes vote down vote up
MsgDetailAddressBox = ({ addr, lat, lng }) => {
  return (
    <MsgDetailAdrsWrapper>
      <MsgDetailAdrsOuterWrapper>
        <MsgDetailAdrsInnerWrapper>
          <MsgDetailAdrsTitle>찾아가는 방법</MsgDetailAdrsTitle>
          <MsgDetailAdrsAddrestWrapper>
            <MsgDetailAdrsAddressTitle>주소</MsgDetailAdrsAddressTitle>
            <MsgDetailAdrsAddress>{addr}</MsgDetailAdrsAddress>
          </MsgDetailAdrsAddrestWrapper>
        </MsgDetailAdrsInnerWrapper>
        <CopyToClipboard text={addr}>
          <StButton>
            <MsgDetailAdrsButtonWrapper>
              <MsgDetailAdrsButtonInnerWrapper>
                <IoIosCopy />
                <MsgDetailAdrsButtonText>주소 복사하기</MsgDetailAdrsButtonText>
              </MsgDetailAdrsButtonInnerWrapper>
              <MdKeyboardArrowRight />
            </MsgDetailAdrsButtonWrapper>
          </StButton>
        </CopyToClipboard>
        <a
          href={`https://www.google.com/maps/place/${addr}/@${lat}/@${lng}`}
          target="_blank"
          rel="noopener noreferrer"
        >
          <StButton>
            <MsgDetailAdrsButtonWrapper>
              <MsgDetailAdrsButtonInnerWrapper>
                <MdLocationOn />
                <MsgDetailAdrsButtonText>
                  찾아가는 방법 보기
                </MsgDetailAdrsButtonText>
              </MsgDetailAdrsButtonInnerWrapper>
              <MdKeyboardArrowRight />
            </MsgDetailAdrsButtonWrapper>
          </StButton>
        </a>
      </MsgDetailAdrsOuterWrapper>
    </MsgDetailAdrsWrapper>
  );
}
Example #2
Source File: Card.js    From js-code with ISC License 5 votes vote down vote up
Card = () => {
	const { githubUser } = React.useContext(GithubContext);
	const {
		avatar_url,
		html_url,
		name,
		company,
		blog,
		location,
		bio,
		twitter_username,
	} = githubUser;

	return (
		<Wrapper>
			<header>
				<img src={avatar_url} alt={name}></img>
				<div>
					<h4>{name}</h4>
					<p>@{twitter_username || 'john doe'}</p>
				</div>
				<a href={html_url}>follow</a>
			</header>
			<p className='bio'>{bio}</p>
			<div className='links'>
				<p>
					<MdBusiness></MdBusiness>
					{company}
				</p>
				<p>
					<MdLocationOn></MdLocationOn>
					{location || 'earth'}
				</p>
				<a href={`https://${blog}`}>
					<MdLink></MdLink>
					{blog}
				</a>
			</div>
		</Wrapper>
	);
}
Example #3
Source File: index.js    From atendimento-e-agilidade-medica-AAMed with MIT License 4 votes vote down vote up
export default function Profile(props) {
  document.title = 'AAMed - Perfil';

  const [name, setName] = useState('');
  const [email, setEmail] = useState('');
  const [phone, setPhone] = useState('');
  const [cnpj, setCnpj] = useState('');
  const [cnes, setCnes] = useState('');
  const [city, setCity] = useState('');
  const [state, setState] = useState('');
  const [street, setStreet] = useState('');
  const [neighborhood, setNeighborhood] = useState('');
  const [cep, setCep] = useState('');

  useEffect(() => {
    async function handleInformations() {
      const response = await api.get('/hospital/home', {
        withCredentials: true,
      });
      const {
        cnes,
        cnpj,
        name,
        email,
        phone,
        address,
      } = response.data.hospital;
      setName(name);
      setEmail(email);
      setPhone(phone);
      setCnes(cnes);
      setCnpj(cnpj);
      setCity(address.city);
      setState(address.state);
      setStreet(address.street);
      setNeighborhood(address.neighborhood);
      setCep(address.cep);
    }
    handleInformations();
  }, []);

  return (
    <>
      <div className="menu-profile">
        <div className="back">
          <button onClick={() => props.history.goBack()}>
            <IoMdArrowRoundBack size={25} />
            Voltar
          </button>
        </div>
        <div className="title-profile">
          <h2>Olá, {name}</h2>
        </div>
      </div>
      <div className="content-support">
        <div>
          <h2>Veja seu perfil rápido e fácil!</h2>
          <span>Verificando se tudo está correto? Está fazendo certo.</span>
        </div>
        <div>
          <img
            src={require('../../assets/profile.png')}
            alt="Suporte do 1° Socorros"
            title="Suporte do 1° Socorros"
          />
        </div>
      </div>
      <div className="profile">
        <div className="container-profile">
          <div className="container-top">
            <div className="container-img">
              <img src={require('../../assets/icon.png')} alt="" />
            </div>
            <div>
              <span>
                <MdLocationOn size={20} />
                <p>
                  {city}, {state}
                </p>
              </span>
            </div>
          </div>
          <div className="container-bottom">
            <h2>Veja abaixo suas informações :)</h2>
            <div className="content-bottom">
              <div>
                <h2>Nome: </h2>
                <h2>Bairro: </h2>
                <h2>Rua: </h2>
                <h2>Cidade: </h2>
                <h2>Estado: </h2>
                <h2>CEP: </h2>
                <h2>E-mail: </h2>
                <h2>CNES: </h2>
                <h2>Cnpj: </h2>
                <h2>Telefone: </h2>
              </div>
              <div>
                <h2>{name}</h2>
                <h2>{neighborhood}</h2>
                <h2>{street}</h2>
                <h2>{city}</h2>
                <h2>{state}</h2>
                <h2>{cep}</h2>
                <h2>{email}</h2>
                <h2>{cnes}</h2>
                <h2>{cnpj}</h2>
                <h2>{phone}</h2>
              </div>
            </div>
          </div>
        </div>
      </div>
    </>
  );
}