-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add bare bones coral talk commenting #253
Conversation
Pull Request Test Coverage Report for Build 4980
💛 - Coveralls |
} | ||
|
||
public async componentDidMount(): Promise<void> { | ||
const discourseUrl = process.env.REACT_APP_DISCOURSE_URL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wonder how this is working
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed the usage specified here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
neet. I didn't know create react app could do that
import { ViewModule } from "../utility/ViewModules"; | ||
|
||
class ListingDiscourse extends React.Component { | ||
constructor(props: {}) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
constuctor isn't used
tag.async = true; | ||
tag.src = discourseUrl + "/static/embed.js"; | ||
|
||
const handleCallback = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how does this get cleaned up, how does it load correct discussion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It loads it in an iframe and creates a discussion per URL
No description provided.