Skip to content

Commit bc5fb8f

Browse files
committed
add wavesurfer element, fix readme
1 parent b261d22 commit bc5fb8f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To install TReactr, use:
2525
This is equivalent to `yarn install` or `npm install`.
2626

2727
## Run:
28-
To start a3 dev server and launch TReactr in your browser, use:
28+
To start a dev server and launch TReactr in your browser, use:
2929

3030
yarn start
3131

src/components/SoundcloudDeck/SoundcloudDeck.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import ReactPlayer from 'react-player';
3+
import Wavesurfer from 'react-wavesurfer';
34
import withStyles from 'isomorphic-style-loader/lib/withStyles';
45
import PropTypes from 'prop-types';
56
import Deck from '../Deck';
@@ -129,6 +130,9 @@ class SoundcloudDeck extends Deck {
129130
}}
130131
volume={this.props.volume / 127}
131132
/>
133+
<Wavesurfer
134+
audioFile={this.props.url}
135+
/>
132136
</div>
133137
);
134138
}

0 commit comments

Comments
 (0)