0
Fork 0
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:
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 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>
);

View file

@ -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;