@material-ui/icons#Info TypeScript Examples

The following examples show how to use @material-ui/icons#Info. 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: BLunaBurnProcess.tsx    From anchor-web-app with Apache License 2.0 6 votes vote down vote up
function Component({ className, style }: BLunaBurnProcessProps) {
  const [show, setShow] = useLocalStorage<'on' | 'off'>(
    '__anchor_show_burn_process__',
    'off',
  );

  return (
    <div className={className} style={style}>
      <h4 onClick={() => setShow(show === 'on' ? 'off' : 'on')}>
        <Info /> bLuna Burn Process{' '}
        {show === 'on' ? <KeyboardArrowUp /> : <KeyboardArrowDown />}
      </h4>

      {show === 'on' && <Content />}
    </div>
  );
}
Example #2
Source File: Info.tsx    From swap-ui with Apache License 2.0 6 votes vote down vote up
function InfoButton() {
  const styles = useStyles();
  return (
    <PopupState variant="popover">
      {
        //@ts-ignore
        (popupState) => (
          <div style={{ display: "flex" }}>
            <IconButton
              {...bindTrigger(popupState)}
              className={styles.infoButton}
            >
              <Info fontSize="small" />
            </IconButton>
            <Popover
              {...bindPopover(popupState)}
              anchorOrigin={{
                vertical: "bottom",
                horizontal: "left",
              }}
              transformOrigin={{
                vertical: "top",
                horizontal: "right",
              }}
              PaperProps={{ style: { borderRadius: "10px" } }}
              disableRestoreFocus
            >
              <InfoDetails />
            </Popover>
          </div>
        )
      }
    </PopupState>
  );
}
Example #3
Source File: MessageDialg.tsx    From flect-chime-sdk-demo with Apache License 2.0 6 votes vote down vote up
MessageDialog = () => {
    const { messageState, resolveMessage } = useAppState();
    const classes = useStyles();
    return (
        <>
            {messageState.messageActive && (
                <>
                    <Dialog open={messageState.messageActive} onClose={resolveMessage}>
                        {messageState.messageType === "Info" ? (
                            <Avatar className={classes.avatarForInformation}>
                                <Info />
                            </Avatar>
                        ) : (
                            <Avatar className={classes.avatarForException}>
                                <ErrorOutline />
                            </Avatar>
                        )}
                        <DialogTitle>{messageState.messageTitle}</DialogTitle>
                        <DialogContent>
                            {messageState.messageDetail.map((d, i) => {
                                return <DialogContentText key={i}>{d}</DialogContentText>;
                            })}
                        </DialogContent>
                        <DialogActions>
                            <Button onClick={resolveMessage} color="primary">
                                OK
                            </Button>
                        </DialogActions>
                    </Dialog>
                </>
            )}
        </>
    );
}
Example #4
Source File: icons.tsx    From jupyter-extensions with Apache License 2.0 5 votes vote down vote up
BlueInfo = withStyles({
  root: {
    color: COLORS.link,
    fontSize: '16px',
  },
})(Info)
Example #5
Source File: status_icons.tsx    From jupyter-extensions with Apache License 2.0 5 votes vote down vote up
BlueInfo = withStyles({
  root: {
    color: COLORS.link,
    fontSize: '16px',
  },
})(Info)
Example #6
Source File: status_icons.tsx    From jupyter-extensions with Apache License 2.0 5 votes vote down vote up
RedError = withStyles({
  root: {
    color: COLORS.red,
    fontSize: '16px',
  },
})(Info)