mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -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;
|
static contextType = AppContext;
|
||||||
|
|
||||||
constructor(props) {
|
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 React from 'react';
|
||||||
import AppContext from '../AppContext';
|
import AppContext from '../AppContext';
|
||||||
import NotSignedInBox from './NotSignedInBox';
|
import NotSignedInBox from './NotSignedInBox';
|
||||||
import Form from './Form';
|
import AddForm from './AddForm';
|
||||||
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 ? <Form /> : <NotSignedInBox /> }
|
{ this.context.member ? <AddForm /> : <NotSignedInBox /> }
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue