aboutsummaryrefslogtreecommitdiff
path: root/vnext/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-07-26 13:44:34 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:55 +0300
commit7f5b17162587953307c71da1b137e5f416de11bb (patch)
tree2925c68c7c9300d2c84b79c38d3b82cea56a3e61 /vnext/src
parentf707d3d524d8d16e2bb780764f029d85fc57ecc0 (diff)
more jsdoc
Diffstat (limited to 'vnext/src')
-rw-r--r--vnext/src/ui/Post.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/vnext/src/ui/Post.js b/vnext/src/ui/Post.js
index 99189632..35704f11 100644
--- a/vnext/src/ui/Post.js
+++ b/vnext/src/ui/Post.js
@@ -7,6 +7,9 @@ import MessageInput from './MessageInput';
import { post, update } from '../api';
+/**
+ * @param {{location: import('history').Location, visitor: import('../api').User, history: import('history').History}} props
+ */
export default function Post({ location, visitor, history }) {
let draftMessage = (location.state || {}).draft || {};
let [draft, setDraft] = useState(draftMessage.body);
@@ -46,10 +49,4 @@ export default function Post({ location, visitor, history }) {
</div>
);
}
-/*
-Post.propTypes = {
- location: ReactRouterPropTypes.location,
- history: ReactRouterPropTypes.history.isRequired,
- visitor: UserType
-};
-*/ \ No newline at end of file
+