Skip to content
Snippets Groups Projects
Commit a4b4e0bc authored by Guilherme Eduardo's avatar Guilherme Eduardo
Browse files

Issue #350: FIX-remove-option-profile-embed

parent 79336982
Branches
No related tags found
1 merge request!321Issue #350: FIX-remove-option-profile-embed
Pipeline #42615 passed
......@@ -17,7 +17,7 @@ export default function Embed({ open, onClose, learningObject }) {
`<iframe
width="${width}"
height="${height}"
src="https://www.mecred.mec.gov.br/embed/${learningObject?.id}"
src="https://mecred.mec.gov.br/embed/${learningObject?.id}"
title="${learningObject?.name}"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
......
......@@ -64,6 +64,7 @@ export default function ShareModal({ open, onClose, learningObject, title, type,
<ContentCopyIcon className="p-[1px]" />
{clicked ? <span>Copiado!</span> : <span>Copiar link!</span>}
</Button>
{type != "perfil" && type != "colecao" ? (
<Button
disableElevation
variant="outlined"
......@@ -74,6 +75,8 @@ export default function ShareModal({ open, onClose, learningObject, title, type,
<CodeIcon className='mr-1' />
Incorporar
</Button>
) : null}
<Embed open={embed} onClose={() => setEmbed(false)} learningObject={learningObject} />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment