diff --git a/components/recorder.js b/components/recorder.js index eafc53f..d62222d 100644 --- a/components/recorder.js +++ b/components/recorder.js @@ -1,6 +1,3 @@ -// with thanks to https://medium.com/front-end-weekly/recording-audio-in-mp3-using-reactjs-under-5-minutes-5e960defaf10 - -import MicRecorder from 'mic-recorder-to-mp3'; import { useEffect, useRef, useState, useCallback } from 'react'; import Button from 'react-bootstrap/Button'; import { @@ -17,6 +14,7 @@ import { FaVolumeDown, FaVolumeUp, FaRegTrashAlt, + FaDownload } from 'react-icons/fa'; import { useDispatch, useSelector } from 'react-redux'; import ListGroup from 'react-bootstrap/ListGroup'; @@ -91,7 +89,7 @@ function AudioViewer({ src }) { height: '1.05em', cursor: 'pointer', color: 'red', - paddingLeft: '2px', + paddingLeft: '2px' }} onClick={toggleVolume} /> @@ -114,7 +112,7 @@ function AudioViewer({ src }) { width: '1.23em', height: '1.23em', cursor: 'pointer', - paddingLeft: '3px', + paddingLeft: '3px' }} onClick={toggleVolume} /> @@ -133,7 +131,7 @@ function AudioViewer({ src }) { cursorWidth: 3, height: 200, barGap: 3, - dragToSeek: true, + dragToSeek: true // plugins:[ // WaveSurferRegions.create({maxLength: 60}), // WaveSurferTimeLinePlugin.create({container: containerT.current}) @@ -163,7 +161,7 @@ function AudioViewer({ src }) { flexDirection: 'column', justifyContent: 'center', alignItems: 'center', - margin: '0 1rem 0 1rem', + margin: '0 1rem 0 1rem' }} >
- +
+ + + +