Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

typo of window.fetchWithAuth #3

Closed
wants to merge 5 commits into from
Closed

Conversation

newbazz
Copy link

@newbazz newbazz commented Sep 21, 2017

No description provided.

var url='/question/'+String(req)
return res.redirect(url);
});
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this code? This is not backend :p

@@ -10,7 +8,7 @@ class QuestionViewer extends Component {
}
async componentDidMount() {
const { qno } = this.props.params;
var res = await fetchWithAuth(`/questions/${qno}`);
var res = await window.fetchWithAuth(`/questions/${qno}`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make a commit with only this line

@@ -25,8 +23,9 @@ class QuestionViewer extends Component {
<p>
{question.body}
</p>
{/* XXX: Need to add previous and next buttons here. Use the Link component from 'inferno-router' */}
<input type="button" class="next" value="NEXT"/>&nbsp;<input type="button" class="prev" value="PREVIOUS"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wont do anything until you bind these buttons or have them as links

@meghprkh meghprkh closed this Sep 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants