Commit 3c04c854 authored by Цой Данил's avatar Цой Данил 💬

Changed gallery data if user went in his own gallery

parent c4608730
...@@ -102,7 +102,7 @@ export const UserGallery: React.FunctionComponent = (): React.ReactElement => { ...@@ -102,7 +102,7 @@ export const UserGallery: React.FunctionComponent = (): React.ReactElement => {
</Fade> </Fade>
</Modal> </Modal>
<div style={{display: 'flex', justifyContent: 'space-between', alignItems: 'center'}}> <div style={{display: 'flex', justifyContent: 'space-between', alignItems: 'center'}}>
<h1>{targetedUser._id === user?._id ? 'This is your page' : `${targetedUser.username}'s gallery`}</h1> <h1>{targetedUser._id === user?._id ? 'This is your gallery' : `${targetedUser.username}'s gallery`}</h1>
{targetedUser._id === user?._id ? {targetedUser._id === user?._id ?
<Button variant="contained" size='medium' onClick={goToAddForm}> <Button variant="contained" size='medium' onClick={goToAddForm}>
Add Photo Add Photo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment