Skip to content

Instantly share code, notes, and snippets.

@dschinkel
Created October 5, 2017 22:02
Show Gist options
  • Save dschinkel/8d176d9abc19f9cbe39d5a4d6edc2c43 to your computer and use it in GitHub Desktop.
Save dschinkel/8d176d9abc19f9cbe39d5a4d6edc2c43 to your computer and use it in GitHub Desktop.
A method from Auth
renderPlaybackError() {
const {
playbackErrorTheme,
sharedTheme,
playbackErrorChildren,
backgroundInline,
} = this.props;
const { renderPlaybackError, playbackErrorText } = this.state;
return (
<PlaybackError
key={'playback-error'}
rendered={renderPlaybackError}
theme={playbackErrorTheme}
sharedTheme={sharedTheme}
backgroundInline={backgroundInline}
className="dcg-playback-error"
>
{ playbackErrorChildren({ errorText: playbackErrorText }) }
</PlaybackError>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment