Skip to content
Snippets Groups Projects
Commit 821fdf3e authored by lfr20's avatar lfr20
Browse files

Removed unecessary comment

parent c6e03c14
No related branches found
No related tags found
4 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!39Update admin system,!36Fix perfil into develop
...@@ -88,49 +88,6 @@ export default function CollectionCardFunction(props) { ...@@ -88,49 +88,6 @@ export default function CollectionCardFunction(props) {
} }
useEffect(() => { useEffect(() => {
// setTimeout(function () {
// if (state.currentUser.id) {
// const config = getAxiosConfig();
// axios({
// method: 'get',
// url: `${apiUrl}/users/${state.currentUser.id}/following/Collection`,
// headers: config.headers
// }).then(
// (response) => {
// const data = response.data
// for (let i = 0; i < data.length; i++)
// if (data[i].followable.id === props.id)
// toggleUserFollowingCol(true)
// saveHeaders(response)
// })
// }
// else {
// toggleLiked(false);
// toggleUserFollowingCol(false);
// }
// }, 1000);
// setTimeout(function () {
// if (state.currentUser.id) {
// const config = getAxiosConfig();
// axios({
// method: 'get',
// url: `${apiUrl}/users/${state.currentUser.id}/collections/liked`,
// headers: config.headers
// }).then(
// (response) => {
// const data = response.data
// for (let i = 0; i < data.length; i++)
// if (data[i].id === props.id)
// toggleLiked(true)
// saveHeaders(response)
// })
// }
// else {
// toggleLiked(false);
// toggleUserFollowingCol(false);
// }
// }, 2000);
if (!state.currentUser.id) { if (!state.currentUser.id) {
toggleLiked(false); toggleLiked(false);
toggleUserFollowingCol(false); toggleUserFollowingCol(false);
...@@ -174,6 +131,8 @@ export default function CollectionCardFunction(props) { ...@@ -174,6 +131,8 @@ export default function CollectionCardFunction(props) {
<p>{props.author}</p> <p>{props.author}</p>
</EnviadoPor> </EnviadoPor>
</HeaderContainer> </HeaderContainer>
{
props.tags ?
<TagContainer container direction="row"> <TagContainer container direction="row">
{ {
props.tags.map((tag) => props.tags.map((tag) =>
...@@ -182,7 +141,9 @@ export default function CollectionCardFunction(props) { ...@@ -182,7 +141,9 @@ export default function CollectionCardFunction(props) {
</Grid> </Grid>
) )
} }
</TagContainer> </TagContainer> :
null
}
</SlideContentDiv> </SlideContentDiv>
) )
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment