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

Merge branch 'issue-350/FIX-remove-profile-embed' into 'develop'

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

See merge request !321
parents 79336982 a4b4e0bc
Branches
No related tags found
1 merge request!321Issue #350: FIX-remove-option-profile-embed
Pipeline #42616 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