File tree Expand file tree Collapse file tree 3 files changed +2
-11
lines changed
Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,7 @@ import { datastore } from "./datastore";
1616import Markdown from "./Markdown" ;
1717import Theme from "./theme" ;
1818import {
19- formatTimeStampAsDate ,
20- formatTimeStampToLongString ,
21- formatTimeStampToCompact ,
19+ formatTimeStampToLongString
2220} from "./utils" ;
2321
2422function CommentEditor ( props ) {
@@ -126,7 +124,7 @@ function CommentBox(props) {
126124 if ( content === "" ) {
127125 setContent ( props . comment . content ) ;
128126 }
129- } ) ;
127+ } , [ content , props . comment . content ] ) ;
130128
131129 const onChange = ( event ) => {
132130 setContent ( event . target . value ) ;
@@ -188,7 +186,6 @@ function DiscussionPanel(props) {
188186 const signal = axios . CancelToken . source ( ) ;
189187
190188 const [ comments , setComments ] = React . useState ( [ ] ) ;
191- const [ error , setError ] = React . useState ( null ) ;
192189 const [ newComment , setNewComment ] = React . useState ( { } ) ;
193190 const [ waiting , setWaiting ] = React . useState ( false ) ;
194191
Original file line number Diff line number Diff line change @@ -4,11 +4,8 @@ import Dialog from "@material-ui/core/Dialog";
44import DialogActions from "@material-ui/core/DialogActions" ;
55import DialogContent from "@material-ui/core/DialogContent" ;
66import DialogTitle from "@material-ui/core/DialogTitle" ;
7- import FormControlLabel from "@material-ui/core/FormControlLabel" ;
8- import FormLabel from "@material-ui/core/FormLabel" ;
97import Grid from "@material-ui/core/Grid" ;
108import InputAdornment from "@material-ui/core/InputAdornment" ;
11- import Switch from "@material-ui/core/Switch" ;
129import TextField from "@material-ui/core/TextField" ;
1310import CancelIcon from "@material-ui/icons/Cancel" ;
1411import CheckCircleIcon from "@material-ui/icons/CheckCircle" ;
Original file line number Diff line number Diff line change @@ -4,11 +4,8 @@ import Dialog from "@material-ui/core/Dialog";
44import DialogActions from "@material-ui/core/DialogActions" ;
55import DialogContent from "@material-ui/core/DialogContent" ;
66import DialogTitle from "@material-ui/core/DialogTitle" ;
7- import FormControlLabel from "@material-ui/core/FormControlLabel" ;
8- import FormLabel from "@material-ui/core/FormLabel" ;
97import Grid from "@material-ui/core/Grid" ;
108import InputAdornment from "@material-ui/core/InputAdornment" ;
11- import Switch from "@material-ui/core/Switch" ;
129import TextField from "@material-ui/core/TextField" ;
1310import CancelIcon from "@material-ui/icons/Cancel" ;
1411import CheckCircleIcon from "@material-ui/icons/CheckCircle" ;
You can’t perform that action at this time.
0 commit comments