@material-ui/icons#ArrowBack JavaScript Examples

The following examples show how to use @material-ui/icons#ArrowBack. 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: WebContactsHeaderView.js    From WhatsApp-Clone with MIT License 6 votes vote down vote up
WebContactsHeaderView = ({ item, onChatCloseClick }) => {
  return (
    <div style={styles.parentView}>
      <div
        onClick={() => { 
          onChatCloseClick();
        }}
        style={{ alignSelf: "center", justifyContent: "center",cursor:'pointer' }}
      >
        <ArrowBack style={styles.backIcon} />
      </div>
      <div
        style={{
          flexDirection: "column",
          marginLeft: 7,
          justifyContent: "center",
          fontSize: 24,
          alignSelf: "center"
        }}
      >
        <Typography numberOfLines={1} style={styles.userName}>
          Select contact
        </Typography>
        <Typography numberOfLines={2} style={styles.userMessage}>
          {item} contacts
        </Typography>
      </div>
      <div style={{ flexDirection: "row", justifyContent: "space-evenly" }}>
        <Icon
          name="dots-vertical"
          type="MaterialCommunityIcons"
          style={styles.menuIcons}
        />
      </div>
    </div>
  );
}