diff --git a/src/app/components/Embed.js b/src/app/components/Embed.js index d6a154c84deacce9ab9030524444c9f6e7a7d6ed..86301730c0a655250c237a3de5fa486fbc942274 100644 --- a/src/app/components/Embed.js +++ b/src/app/components/Embed.js @@ -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" diff --git a/src/app/components/ShareButton.js b/src/app/components/ShareButton.js index ff42676105bbb66463e91cd083ca8f6f92026411..cd538d50a707d18fcaf086b0510f5e791ee97b58 100644 --- a/src/app/components/ShareButton.js +++ b/src/app/components/ShareButton.js @@ -40,7 +40,7 @@ export default function ShareButton({ type, id }) { </span> </button> )} - + <ShareModal open={shareOpen} onClose={() => setShareOpen(false)} diff --git a/src/app/components/ShareModal.js b/src/app/components/ShareModal.js index a90e8d326f7b2ae26ed5ddef9df4a38d96030344..b13fc799d7b11bed22559348a57753d9a85354e9 100644 --- a/src/app/components/ShareModal.js +++ b/src/app/components/ShareModal.js @@ -31,7 +31,7 @@ export default function ShareModal({ open, onClose, learningObject, title, type, .catch((error) => console.error("Erro ao compartilhar:", error)); } - + return ( <Modal open={open} @@ -64,16 +64,19 @@ export default function ShareModal({ open, onClose, learningObject, title, type, <ContentCopyIcon className="p-[1px]" /> {clicked ? <span>Copiado!</span> : <span>Copiar link!</span>} </Button> - <Button - disableElevation - variant="outlined" - className="border text-lg normal-case text-darkGray-HC-white hover:bg-darkGray-HC-white hover:text-white-HC-dark border-lightGray-HC-white" - aria-label="Incorporar" - onClick={() => setEmbed(true)} - > - <CodeIcon className='mr-1' /> - Incorporar - </Button> + {type != "perfil" && type != "colecao" ? ( + <Button + disableElevation + variant="outlined" + className="border text-lg normal-case text-darkGray-HC-white hover:bg-darkGray-HC-white hover:text-white-HC-dark border-lightGray-HC-white" + aria-label="Incorporar" + onClick={() => setEmbed(true)} + > + <CodeIcon className='mr-1' /> + Incorporar + </Button> + ) : null} + <Embed open={embed} onClose={() => setEmbed(false)} learningObject={learningObject} />