Skip to content

Commit

Permalink
rerender on error icon click
Browse files Browse the repository at this point in the history
  • Loading branch information
therexone committed Oct 27, 2020
1 parent 375e1b9 commit fea3a1c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@ function App() {
onError={() => setError(true)}
></audio>
{isLoading && <div className="lds-dual-ring"></div>}
{error && !isLoading && <ErrorIcon className="error-icon" fill="white" />}
{error && !isLoading && (
<ErrorIcon
className="error-icon"
fill="white"
onClick={() => setStreamLink(streamLink)}
/>
)}

<div className="stream-btns">
{radioStreams.map((stream, i) => (
Expand Down

0 comments on commit fea3a1c

Please sign in to comment.