@mui/icons-material#WifiOffRounded TypeScript Examples

The following examples show how to use @mui/icons-material#WifiOffRounded. 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: DetailError.tsx    From airmessage-web with Apache License 2.0 6 votes vote down vote up
function DetailErrorMessage(props: {
	error: ConnectionErrorCode,
	resetCallback?: VoidFunction | undefined
}) {
	const errorDisplay = errorCodeToDisplay(props.error);
	
	return (<>
		<WifiOffRounded className={styles.icon} />
		<div className={styles.split}>
			<Typography variant="h4" gutterBottom>{errorDisplay.title}</Typography>
			<Typography color="textSecondary" gutterBottom dangerouslySetInnerHTML={{__html: errorDisplay.subtitle}} />
			<div className={styles.buttonRow}>
				{errorDisplay.buttonPrimary && <Button variant="contained" disableElevation onClick={errorDisplay.buttonPrimary.onClick}>{errorDisplay.buttonPrimary.label}</Button>}
				{errorDisplay.buttonSecondary && <Button onClick={errorDisplay.buttonSecondary.onClick}>{errorDisplay.buttonSecondary.label}</Button>}
				
				{props.resetCallback && (<>
					<div style={{flexGrow: 1}} />
					<Button onClick={props.resetCallback}>Reconfigure</Button>
				</>)}
			</div>
		</div>
	</>);
}
Example #2
Source File: ConnectionBanner.tsx    From airmessage-web with Apache License 2.0 6 votes vote down vote up
export default function ConnectionBanner(props: {error: ConnectionErrorCode}) {
	const errorDisplay = errorCodeToShortDisplay(props.error);
	
	return (
		<Paper variant="outlined" className={errorDisplay.button ? styles.rootButton : styles.rootText}>
			<WifiOffRounded className={styles.icon} />
			<div className={styles.stack}>
				<Typography display="inline">{errorDisplay.message}</Typography>
				{errorDisplay.button && <Button color="primary" className={styles.button} onClick={errorDisplay.button.onClick}>{errorDisplay.button.label}</Button>}
			</div>
		</Paper>
	);
}