Skip to content
Snippets Groups Projects
Commit 535722c9 authored by Richard Fernando Heise Ferreira's avatar Richard Fernando Heise Ferreira
Browse files

Issue #214: FIX expand button on profile collection

parent 839ed132
No related branches found
No related tags found
1 merge request!202Issue #214: FIX expand button on profile collection
Pipeline #39954 passed
......@@ -69,7 +69,7 @@ export default function GroupCardsCollections({ data, cardsPerRow }) {
{expanded ? "Ver menos" : "Ver mais..."}
</p>
</button>
) : null}
) : null}
{data?.length > 1 ?
< button
......
......@@ -72,6 +72,7 @@ export default function CreateCollectionModal({ open, onClose, idLogin }) {
},
});
setOpenSucess(true);
setName("");
} catch (error) {
// Log de erro caso ocorra
console.error("Erro ao criar a coleção:", error);
......
......@@ -62,7 +62,7 @@ export default function ProfileCollections({ id, idLogin }) {
getWidth().then((res) => {
setCardsPerRow(Math.floor(res / 300));
});
}, []);
}, [got]);
useEffect(() => {
......@@ -217,7 +217,7 @@ export default function ProfileCollections({ id, idLogin }) {
}
</div>
</div>
<GroupCardsCollections cardsPerRow={cardsPerRow} data={item.collection_items} />
<GroupCardsCollections data={item.collection_items} cardsPerRow={cardsPerRow} />
</div>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment