mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Renamed form component again, now to separate from edit for now
This commit is contained in:
parent
c7bc1f9b8d
commit
1ac92467b5
2 changed files with 4 additions and 4 deletions
|
@ -62,7 +62,7 @@ import Avatar from './Avatar';
|
|||
// );
|
||||
// };
|
||||
|
||||
class Form extends React.Component {
|
||||
class AddForm extends React.Component {
|
||||
static contextType = AppContext;
|
||||
|
||||
constructor(props) {
|
||||
|
@ -134,4 +134,4 @@ class Form extends React.Component {
|
|||
}
|
||||
}
|
||||
|
||||
export default Form;
|
||||
export default AddForm;
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import AppContext from '../AppContext';
|
||||
import NotSignedInBox from './NotSignedInBox';
|
||||
import Form from './Form';
|
||||
import AddForm from './AddForm';
|
||||
import Comment from './Comment';
|
||||
import Pagination from './Pagination';
|
||||
|
||||
|
@ -52,7 +52,7 @@ class CommentsBox extends React.Component {
|
|||
{comments}
|
||||
</div>
|
||||
<div>
|
||||
{ this.context.member ? <Form /> : <NotSignedInBox /> }
|
||||
{ this.context.member ? <AddForm /> : <NotSignedInBox /> }
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue