0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Fixed up a merge for forms

This commit is contained in:
James Morris 2022-07-06 15:42:42 +02:00
parent cd85b7cad9
commit c7bc1f9b8d
2 changed files with 5 additions and 5 deletions

View file

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import AppContext from '../AppContext'; import AppContext from '../AppContext';
import NotSignedInBox from './NotSignedInBox'; import NotSignedInBox from './NotSignedInBox';
import AddForm from './AddForm'; import Form from './Form';
import Comment from './Comment'; import Comment from './Comment';
import Pagination from './Pagination'; import Pagination from './Pagination';
@ -52,7 +52,7 @@ class CommentsBox extends React.Component {
{comments} {comments}
</div> </div>
<div> <div>
{ this.context.member ? <AddForm /> : <NotSignedInBox /> } { this.context.member ? <Form /> : <NotSignedInBox /> }
</div> </div>
</section> </section>
); );

View file

@ -62,7 +62,7 @@ import Avatar from './Avatar';
// ); // );
// }; // };
class AddForm extends React.Component { class Form extends React.Component {
static contextType = AppContext; static contextType = AppContext;
constructor(props) { constructor(props) {
@ -134,4 +134,4 @@ class AddForm extends React.Component {
} }
} }
export default AddForm; export default Form;