|
@@ -55,17 +55,17 @@ const useStyles = makeStyles({
|
|
}
|
|
}
|
|
},
|
|
},
|
|
'@keyframes shake': {
|
|
'@keyframes shake': {
|
|
- '0%': { transform: 'translate(1px, 1px) rotate(0deg)'},
|
|
|
|
- '10%': { transform: 'translate(-1px, -2px) rotate(-1deg)'},
|
|
|
|
- '20%': { transform: 'translate(-3px, 0px) rotate(1deg)'},
|
|
|
|
- '30%': { transform: 'translate(3px, 2px) rotate(0deg)'},
|
|
|
|
- '40%': { transform: 'translate(1px, -1px) rotate(1deg)'},
|
|
|
|
- '50%': { transform: 'translate(-1px, 2px) rotate(-1deg)'},
|
|
|
|
- '60%': { transform: 'translate(-3px, 1px) rotate(0deg)'},
|
|
|
|
- '70%': { transform: 'translate(3px, 1px) rotate(-1deg)'},
|
|
|
|
- '80%': { transform: 'translate(-1px, -1px) rotate(1deg)'},
|
|
|
|
- '90%': { transform: 'translate(1px, 2px) rotate(0deg)'},
|
|
|
|
- '100%': { transform: 'translate(1px, -2px) rotate(-1deg)'},
|
|
|
|
|
|
+ '0%': { transform: 'translate(0.5px, 0.5px) rotate(0deg)'},
|
|
|
|
+ '10%': { transform: 'translate(-0.5px, -1px) rotate(-1deg)'},
|
|
|
|
+ '20%': { transform: 'translate(-1.5px, 0px) rotate(1deg)'},
|
|
|
|
+ '30%': { transform: 'translate(1.5px, 1px) rotate(0deg)'},
|
|
|
|
+ '40%': { transform: 'translate(0.5px, -0.5px) rotate(1deg)'},
|
|
|
|
+ '50%': { transform: 'translate(-0.5px, 1px) rotate(-1deg)'},
|
|
|
|
+ '60%': { transform: 'translate(-1.5px, 0.5px) rotate(0deg)'},
|
|
|
|
+ '70%': { transform: 'translate(1.5px, 0.5px) rotate(-1deg)'},
|
|
|
|
+ '80%': { transform: 'translate(-0.5px, -0.5px) rotate(1deg)'},
|
|
|
|
+ '90%': { transform: 'translate(0.5px, 1px) rotate(0deg)'},
|
|
|
|
+ '100%': { transform: 'translate(0.5px, -1px) rotate(-1deg)'},
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
@@ -77,10 +77,10 @@ const SettingsPicture = () => {
|
|
const handleClick = (): void => setModal(true)
|
|
const handleClick = (): void => setModal(true)
|
|
return (
|
|
return (
|
|
<div className={classes.container}>
|
|
<div className={classes.container}>
|
|
- {modal&&<DeleteModal setModal={setModal} avatarsArr={avatarsArr} index={index} />}
|
|
|
|
|
|
+ {modal&&<DeleteModal setModal={setModal} index={index}/>}
|
|
<Carousel onChange={(i)=> setIndex(i)}>
|
|
<Carousel onChange={(i)=> setIndex(i)}>
|
|
{avatarsArr.map(({ avatarUrl, updatedAt }) =>
|
|
{avatarsArr.map(({ avatarUrl, updatedAt }) =>
|
|
- <div>
|
|
|
|
|
|
+ <div key={avatarUrl}>
|
|
<img alt='pic' src={`http://localhost:3000/${avatarUrl}`}/>
|
|
<img alt='pic' src={`http://localhost:3000/${avatarUrl}`}/>
|
|
<p className="legend">{timeStampEU(updatedAt)}</p>
|
|
<p className="legend">{timeStampEU(updatedAt)}</p>
|
|
</div>)}
|
|
</div>)}
|
|
@@ -88,13 +88,14 @@ const SettingsPicture = () => {
|
|
<span className={classes.nameTile}>{`${firstLetter(name)}${slicedWord(name, 15, 1)}
|
|
<span className={classes.nameTile}>{`${firstLetter(name)}${slicedWord(name, 15, 1)}
|
|
${firstLetter(lastName)}${slicedWord(lastName, 15, 1)}`}</span>
|
|
${firstLetter(lastName)}${slicedWord(lastName, 15, 1)}`}</span>
|
|
<span className={classes.timeTile}>{online === 'true' ? 'online' : `last seen ${timeStampEU(online)}`}</span>
|
|
<span className={classes.timeTile}>{online === 'true' ? 'online' : `last seen ${timeStampEU(online)}`}</span>
|
|
- <div className={classes.iconDeleteWrapper}>
|
|
|
|
|
|
+ {avatarsArr.length > 1 &&
|
|
|
|
+ <div className={classes.iconDeleteWrapper}>
|
|
<Avatar className={classes.iconDelete} onClick={handleClick}
|
|
<Avatar className={classes.iconDelete} onClick={handleClick}
|
|
sx={{width: 36, height: 36, backgroundColor: 'rgb(0,0,0)',
|
|
sx={{width: 36, height: 36, backgroundColor: 'rgb(0,0,0)',
|
|
color: '#ffffff', opacity: 0.5,cursor:'pointer'}}>
|
|
color: '#ffffff', opacity: 0.5,cursor:'pointer'}}>
|
|
<DeleteOutlineIcon fontSize='medium'/>
|
|
<DeleteOutlineIcon fontSize='medium'/>
|
|
</Avatar>
|
|
</Avatar>
|
|
- </div>
|
|
|
|
|
|
+ </div>}
|
|
</div>
|
|
</div>
|
|
)
|
|
)
|
|
}
|
|
}
|