@material-ui/icons#PhoneIphone JavaScript Examples

The following examples show how to use @material-ui/icons#PhoneIphone. 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: PersonCard.jsx    From frontend with MIT License 5 votes vote down vote up
PersonCard = ({ person }) => {
  const classes = useStyles();
  return (
    <Paper className={classes.paper}>
      <Grid container wrap="nowrap" spacing={2}>
        <Grid item>
          <PersonAvatar
            className={classes.avatar}
            src={person.avatarUrl}
            name={person.name}
            size="large"
          />
        </Grid>
        <Grid item xs zeroMinWidth>
          <Grid container className={classes.nameWrapper}>
            <Typography className={classes.name} noWrap>
              {person.name}
            </Typography>
          </Grid>
          <LinkWithIcon
            href={`mailto:${person.email}`}
            label={person.email}
            icon={Email}
          />
          <LinkWithIcon
            href={`tel:${person.email}`}
            label={person.phone}
            icon={PhoneIphone}
          />
          {/* TODO: Prepare website link if they aren't validated on backend (without protocols) */}
          <LinkWithIcon
            href={person.website}
            label={person.website}
            icon={LinkIcon}
          />
        </Grid>
      </Grid>
    </Paper>
  );
}