diff options
-rw-r--r-- | vnext/src/ui/Post.js | 11 |
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 + |