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 => {
</Fade>
</Modal>
<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 ?
<Button variant="contained" size='medium' onClick={goToAddForm}>
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