aboutsummaryrefslogtreecommitdiff
path: root/vnext/src
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src')
-rw-r--r--vnext/src/ui/Icon.js2
-rw-r--r--vnext/src/ui/UploadButton.js8
-rw-r--r--vnext/src/ui/UserInfo.js2
3 files changed, 6 insertions, 6 deletions
diff --git a/vnext/src/ui/Icon.js b/vnext/src/ui/Icon.js
index c959e2d1..3255346f 100644
--- a/vnext/src/ui/Icon.js
+++ b/vnext/src/ui/Icon.js
@@ -32,7 +32,7 @@ function IconElement(props) {
}
/**
- * @param {React.ReactElement} Html
+ * @param {import('react').ReactElement} Html
* @param {string} klass
*/
function wrapSpinner(Html, klass) {
diff --git a/vnext/src/ui/UploadButton.js b/vnext/src/ui/UploadButton.js
index 78991340..b652e522 100644
--- a/vnext/src/ui/UploadButton.js
+++ b/vnext/src/ui/UploadButton.js
@@ -1,10 +1,10 @@
import Icon from './Icon';
/**
- * @typedef {Object} UploadButtonProps
+ * @typedef {object} UploadButtonProps
* @property {string} value
- * @property {React.MutableRefObject<HTMLInputElement>} inputRef
- * @property {function} onChange
+ * @property {import('react').MutableRefObject<HTMLInputElement>} inputRef
+ * @property {Function} onChange
*/
/**
@@ -22,7 +22,7 @@ export default function UploadButton(props) {
};
/**
- * @param {React.ChangeEvent<HTMLInputElement>} event
+ * @param {import('react').ChangeEvent<HTMLInputElement>} event
*/
let attachmentChanged = (event) => {
props.onChange(event.target.value);
diff --git a/vnext/src/ui/UserInfo.js b/vnext/src/ui/UserInfo.js
index 2a0ba619..bcf5c20e 100644
--- a/vnext/src/ui/UserInfo.js
+++ b/vnext/src/ui/UserInfo.js
@@ -13,7 +13,7 @@ let isMounted;
/**
* User info component
- * @param {{uname: string, onUpdate?: function, children?: React.ReactElement}} props
+ * @param {{uname: string, onUpdate?: function, children?: import('react').ReactElement}} props
*/
export default function UserInfo({ uname, onUpdate, children }) {
const [user, setUser] = useState({