@fortawesome/free-solid-svg-icons#faVolumeUp TypeScript Examples

The following examples show how to use @fortawesome/free-solid-svg-icons#faVolumeUp. 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: index.tsx    From pPhone2 with MIT License 6 votes vote down vote up
settingsDataList: ISettingsProps[] = [
    { id: 1, title: 'Mode Avion', img: faPlaneDeparture, imgType: 'fontAwesome-icon1', imgColor: '#fff', backround: '#f09a37', checkbox: true },
    { id: 2, title: 'Wifi', img: faWifi, imgType: 'fontAwesome-icon1', imgColor: '#fff', backround: '#3478f6 ', /*rightLabel: "test" */ },
    { id: 3, title: 'Bluetooth', img: faBluetooth, imgType: 'fontAwesome-icon2', imgColor: '#fff', backround: '#3478f6 '  },
    { id: 4, title: 'Cartes SIM', img: faSimCard, imgType: 'fontAwesome-icon4', imgColor: '#fff', backround: '#65c466'  },

    { id: 0, alt: true },
    { id: 5, title: 'Notifications', img: faBell, imgType: 'fontAwesome-icon2', imgColor: '#fff', backround: '#d70015'  },
    { id: 6, title: 'Sons & Vibrations', img: faVolumeUp, imgType: 'fontAwesome-icon3', imgColor: '#fff', backround: '#d70015'  },
    { id: 7, title: 'Fond d\'ecran', img: faPalette, imgType: 'fontAwesome-icon3', imgColor: '#fff', backround: '#70d7ff'  },
    { id: 8, title: 'Mode Nuit', img: faMoon, imgType: 'fontAwesome-icon3', imgColor: '#fff', backround: '#5756ce'  },
    { id: 9, title: 'Theme', img: faBrush, imgType: 'fontAwesome-icon4', imgColor: '#fff', backround: '#8944ab'  },

]
Example #2
Source File: AudioOutputControl.tsx    From amazon-chime-sdk-smart-video-sending-demo with Apache License 2.0 6 votes vote down vote up
AudioOutputControl: React.FC = () => {
  const audioVideo = useAudioVideo();
  const [isAudioOn, setIsAudioOn] = useState(true);
  const audioRef = useRef<HTMLAudioElement>(null);
  
  useEffect(() => {
    if (!audioVideo) {
      return;
    }

    if (audioRef.current) {
      audioVideo.bindAudioElement(audioRef.current);
    }
    return () => {
      audioVideo.unbindAudioElement();
    };
  }, [audioRef, audioVideo]);

  const toggleAudio = (): void => {
    if (!audioRef.current) {
      return;
    }
    setIsAudioOn(!isAudioOn);
    if (isAudioOn) {
      audioVideo?.unbindAudioElement();
    } else {
      audioVideo?.bindAudioElement(audioRef.current);
    }
  }

  return (
    <>
      <ButtonGroup>
        <IconButton icon={isAudioOn ? faVolumeUp : faVolumeMute} onClick={toggleAudio} />
      </ButtonGroup>
      <audio ref={audioRef} style={{ display: 'none' }} />
    </>
  );
}