-
-
Save adrianhajdin/cc90da3990871d509ccbd9068da5a636 to your computer and use it in GitHub Desktop.
import { makeStyles } from '@material-ui/core/styles'; | |
export default makeStyles((theme) => ({ | |
paper: { | |
marginTop: theme.spacing(8), | |
display: 'flex', | |
flexDirection: 'column', | |
alignItems: 'center', | |
padding: theme.spacing(2), | |
}, | |
root: { | |
'& .MuiTextField-root': { | |
margin: theme.spacing(1), | |
}, | |
}, | |
avatar: { | |
margin: theme.spacing(1), | |
backgroundColor: theme.palette.secondary.main, | |
}, | |
form: { | |
width: '100%', // Fix IE 11 issue. | |
marginTop: theme.spacing(3), | |
}, | |
submit: { | |
margin: theme.spacing(3, 0, 2), | |
}, | |
googleButton: { | |
marginBottom: theme.spacing(2), | |
}, | |
})); |
import React from 'react'; | |
const icon = () => ( | |
<svg style={{ width: '20px', height: '20px' }} viewBox="0 0 24 24"> | |
<path | |
fill="currentColor" | |
d="M21.35,11.1H12.18V13.83H18.69C18.36,17.64 15.19,19.27 12.19,19.27C8.36,19.27 5,16.25 5,12C5,7.9 8.2,4.73 12.2,4.73C15.29,4.73 17.1,6.7 17.1,6.7L19,4.72C19,4.72 16.56,2 12.1,2C6.42,2 2.03,6.8 2.03,12C2.03,17.05 6.16,22 12.25,22C17.6,22 21.5,18.33 21.5,12.91C21.5,11.76 21.35,11.1 21.35,11.1V11.1Z" | |
/> | |
</svg> | |
); | |
export default icon; |
const Likes = () => { | |
if (post.likes.length > 0) { | |
return post.likes.find((like) => like === (user?.result?.googleId || user?.result?._id)) | |
? ( | |
<><ThumbUpAltIcon fontSize="small" /> {post.likes.length > 2 ? `You and ${post.likes.length - 1} others` : `${post.likes.length} like${post.likes.length > 1 ? 's' : ''}` }</> | |
) : ( | |
<><ThumbUpAltOutlined fontSize="small" /> {post.likes.length} {post.likes.length === 1 ? 'Like' : 'Likes'}</> | |
); | |
} | |
return <><ThumbUpAltOutlined fontSize="small" /> Like</>; | |
}; |
Thanks
Thanks a lot.
Super thanks, I growing professionally thanks to you. And better than my Computer Science course when it comes to programming💀
Great tutorials. Love your work
amazing work. i love all your stuffs.
Thank you bro.
Many thanks again.
This is awesome. You just made it easy for me. thanks a million times. I would also like you to instruct on material UI
Great Teacher, Thanks.
Very nice, thank you for sharing!
Thank you
Thank you
Loved your content..
thanks you so much
Thanks BRO!
Thanks!
Thank you! it has helped me so much
Thankyou
legend
Thank you a lot ....!
you are a legend
Thank you
Great Work ! thanks bro ;)
Thanks bro!
Great work bro.... Thank you so much :)
Highly professional and explicit build. Thanks a lot for this positive impact.
thanks
Thank you bro
Good job. This is so helpful
Thank a lot man
Awesome!