@material-ui/icons#CallEnd JavaScript Examples

The following examples show how to use @material-ui/icons#CallEnd. 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: Navbar.js    From SyntaxMeets with MIT License 4 votes vote down vote up
Navbar = (props) => {
  const Copytext = (value) => {
    copy(value);
    props.setSnackBar("Room-ID Copied !","success");
  };

  const [open, setOpen] = React.useState(false);

  const handleClickOpen = () => {
    setOpen(true);
  };
  const handleClose = () => {
    setOpen(false);
  };

  return (
    <Fragment>
      <Dialog
        fullScreen
        TransitionComponent={Transition}
        onClose={handleClose}
        aria-labelledby="customized-dialog-title"
        open={open}
      >
        <About handleClose={handleClose}/>
      </Dialog>

      <AppBar position="static" style={{ backgroundColor: "#000A29" }}>
        <Toolbar>
          <img
            src={logo}
            style={{ maxWidth: "50px", maxHeight: "50px" }}
            alt="SyntaxMeets"
          />
          <Typography
            variant="h5"
            style={{ color: "white", fontFamily: "poppins", fontWeight: "800" }}
          >
            &nbsp;Syntax<span style={{ color: "#FFD500" }}>Meets</span>
          </Typography>

          <Button
            variant="contained"
            startIcon={<PersonIcon />}
            onClick={() => Copytext(`Hi there! You have been invited by ${props.name} to join SyntaxMeets. \n \nClick on this link - https://syntaxmeets.vercel.app \n \nand join the room by providing your name and Room-Id: ${props.roomId}`)}
            color="primary"
            style={{
              fontFamily: "poppins",
              marginLeft: "auto",
              fontWeight: "600",
              color: "white",
            }}
          >
            <Typography 
              style={{
                  whiteSpace: 'nowrap',
                  fontFamily: "poppins",
                  fontWeight: "600",
                  color: "white",
                  fontSize: "14px"
              }}>
              RoomId : {props.roomId}
            </Typography>
          </Button>
          <SyntaxChat
            name={props.name}
            roomId={props.roomId}
            socket={props.socket}
          />
          <ParticpantsList  />
          <Button
            variant="contained"
            onClick={handleClickOpen}
            color="secondary"
            style={{
              fontFamily: "poppins",
              marginLeft: "15px",
              fontWeight: "600",
              color: "white",
            }}
          >
            About Us
          </Button>
          <Link to="/" style={{ textDecoration: "none" }}>
            <Button
              variant="contained"
              startIcon={<CallEnd />}
              style={{
                fontFamily: "poppins",
                marginLeft: "15px",
                fontWeight: "600",
                color: "white",
                backgroundColor: "#fa1e0e",
              }}
              onClick={() => {
                props.socket.disconnect();
              }}
            >
              Leave
            </Button>
          </Link>
        </Toolbar>
      </AppBar>
    </Fragment>
  );
}