Iterate PR
This commit is contained in:
parent
252484fcd9
commit
80bb091cc5
3 changed files with 10 additions and 8 deletions
|
@ -39,14 +39,14 @@ const MiniAvatarUploader: React.FC<IProps> = ({ hasAvatar, hasAvatarLabel, noAva
|
|||
|
||||
useTimeout(() => {
|
||||
setShow(true);
|
||||
}, 3_000); // show after 3 seconds
|
||||
}, 3000); // show after 3 seconds
|
||||
useTimeout(() => {
|
||||
setShow(false);
|
||||
}, 13_000); // hide after being shown for 10 seconds
|
||||
}, 13000); // hide after being shown for 10 seconds
|
||||
|
||||
const uploadRef = useRef<HTMLInputElement>();
|
||||
|
||||
const label = hasAvatar || busy ? hasAvatarLabel : noAvatarLabel;
|
||||
const label = (hasAvatar || busy) ? hasAvatarLabel : noAvatarLabel;
|
||||
|
||||
return <React.Fragment>
|
||||
<input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue