Skip to content

Instantly share code, notes, and snippets.

@isaidspaghetti
Created October 6, 2020 20:04
Show Gist options
  • Save isaidspaghetti/bbdda55debe0915e340de2927978126f to your computer and use it in GitHub Desktop.
Save isaidspaghetti/bbdda55debe0915e340de2927978126f to your computer and use it in GitHub Desktop.
//frontend/src/App.js:29
if (streamCredentials) {
return (
<div>
<h2 className="app-title">Stream Custom Email Notifications</h2>
<div className="container">
<StreamApp
className="stream-app"
apiKey={streamCredentials.apiKey}
token={streamCredentials.token}
appId={streamCredentials.appId}
>
<NotificationDropdown FeedGroup="notification" Group={Notification} />
</StreamApp>
</div>
</div>
);
} else {
return <h1>Retrieving token...</h1>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment