summaryrefslogtreecommitdiffstats
path: root/ui/src/components/post.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-01-06 11:22:51 -0500
committerDessalines <tyhou13@gmx.com>2020-01-06 11:22:51 -0500
commit82253f625b6cadfb7c7c4044c0c0a385f0caefbe (patch)
tree860006933cdc139c50a8dfabe94ef6e55d86f1ba /ui/src/components/post.tsx
parent8c4e973409a9bcfa5a09b1da8f1441d0bec4ea40 (diff)
Upgrade package.json.
Diffstat (limited to 'ui/src/components/post.tsx')
-rw-r--r--ui/src/components/post.tsx12
1 files changed, 2 insertions, 10 deletions
diff --git a/ui/src/components/post.tsx b/ui/src/components/post.tsx
index a86ce2f4..d4869386 100644
--- a/ui/src/components/post.tsx
+++ b/ui/src/components/post.tsx
@@ -34,7 +34,7 @@ import { PostListings } from './post-listings';
import { Sidebar } from './sidebar';
import { CommentForm } from './comment-form';
import { CommentNodes } from './comment-nodes';
-import * as autosize from 'autosize';
+import autosize from 'autosize';
import { i18n } from '../i18next';
import { T } from 'inferno-i18next';
@@ -76,14 +76,7 @@ export class Post extends Component<any, PostState> {
}
this.subscription = WebSocketService.Instance.subject
- .pipe(
- retryWhen(errors =>
- errors.pipe(
- delay(3000),
- take(10)
- )
- )
- )
+ .pipe(retryWhen(errors => errors.pipe(delay(3000), take(10))))
.subscribe(
msg => this.parseMessage(msg),
err => console.error(err),
@@ -169,7 +162,6 @@ export class Post extends Component<any, PostState> {
post={this.state.post}
showBody
showCommunity
- editable
moderators={this.state.moderators}
admins={this.state.admins}
/>