mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Fixed up a merge for forms
This commit is contained in:
parent
cd85b7cad9
commit
c7bc1f9b8d
2 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import AppContext from '../AppContext';
|
||||
import NotSignedInBox from './NotSignedInBox';
|
||||
import AddForm from './AddForm';
|
||||
import Form from './Form';
|
||||
import Comment from './Comment';
|
||||
import Pagination from './Pagination';
|
||||
|
||||
|
@ -52,7 +52,7 @@ class CommentsBox extends React.Component {
|
|||
{comments}
|
||||
</div>
|
||||
<div>
|
||||
{ this.context.member ? <AddForm /> : <NotSignedInBox /> }
|
||||
{ this.context.member ? <Form /> : <NotSignedInBox /> }
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
|
|
@ -62,7 +62,7 @@ import Avatar from './Avatar';
|
|||
// );
|
||||
// };
|
||||
|
||||
class AddForm extends React.Component {
|
||||
class Form extends React.Component {
|
||||
static contextType = AppContext;
|
||||
|
||||
constructor(props) {
|
||||
|
@ -133,5 +133,5 @@ class AddForm extends React.Component {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default AddForm;
|
||||
|
||||
export default Form;
|
Loading…
Add table
Reference in a new issue