Skip to content

Commit

Permalink
chore: remove botao de download
Browse files Browse the repository at this point in the history
  • Loading branch information
weslley17w committed Dec 11, 2023
1 parent 76172a3 commit 8a5ceeb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/pages/ViewPlan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ const ViewPlan = () => {

// Adicionar os dados do plano de aula ao HTML
const planDiv = document.createElement('div');
planDiv.style.margin = '50px'
planDiv.innerHTML = `
<center><h1 style="color: black; font-size: 2em; margin-top: 1em;">${planUpdated.title}</h1></center>
<br></br>
Expand Down Expand Up @@ -290,13 +291,14 @@ const ViewPlan = () => {
<p style="color: black;">${drillData.observations}</p>
<br></br>
<img src="${drillData.image}" style="width: 100%; max-width: 500px; height: auto; display: block; margin-left: auto; margin-right: auto;"/>
`;
`;
container.appendChild(drillDiv);
});

// Configurar as opções do html2pdf
const options = {
margin: 10,

filename: 'plano_de_aula_com_drills.pdf',
image: { type: 'jpeg', quality: 0.98 },
html2canvas: { scale: 2 },
Expand Down

0 comments on commit 8a5ceeb

Please sign in to comment.