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

Merge branch 'issue-351/FIX-rm-invisible-button-resources-report' into 'develop'

Issue #351: FIX change color button and sintax correction

See merge request !326
parents 98ae49b8 5bd1bcb7
No related branches found
No related tags found
1 merge request!326Issue #351: FIX change color button and sintax correction
Pipeline #42737 failed
...@@ -44,7 +44,7 @@ export default function ShareButton({ type, id }) { ...@@ -44,7 +44,7 @@ export default function ShareButton({ type, id }) {
<ShareModal <ShareModal
open={shareOpen} open={shareOpen}
onClose={() => setShareOpen(false)} onClose={() => setShareOpen(false)}
title={`Compartilhando ${type}`} title={`Compartilhando ${type === "colecao" ? "coleção" : type }`}
type={type} type={type}
id={id} id={id}
/> />
......
...@@ -172,17 +172,19 @@ export default function ComplaintModal({ open, onClose, name, id, setSubmitted } ...@@ -172,17 +172,19 @@ export default function ComplaintModal({ open, onClose, name, id, setSubmitted }
}} }}
> >
<div className="flex flex-col bg-ice-HC-dark p-5 rounded-lg "> <div className="flex flex-col bg-ice-HC-dark p-5 rounded-lg ">
<div className="flex gap-12 justify-center items-center pb-2"> <div className="flex w-full justify-center items-center pb-2">
<p className="flex justify-center text-2xl text-darkGray-HC-white-underline font-bold">{`Você está avaliando a denúncia ${name}`}</p> <p className="flex text-2xl justify-center w-full text-darkGray-HC-white font-bold">{`Você está avaliando a denúncia ${name}`}</p>
<div className="flex cursor-pointer justify-end">
<CloseIcon onClick={onClose} sx={{ color: "#6c8080", fontSize: "2s5px" }} /> <CloseIcon onClick={onClose} sx={{ color: "#6c8080", fontSize: "2s5px" }} />
</div> </div>
</div>
{message === "voted" ? <Alert severity="info">Você votou nesse recurso!</Alert> : message === "ok" ? {message === "voted" ? <Alert severity="info">Você votou nesse recurso!</Alert> : message === "ok" ?
<Alert severity="success">Seu voto foi computado com sucesso!</Alert> <Alert severity="success">Seu voto foi computado com sucesso!</Alert>
: message === "error" ? <Alert severity="error">Erro ao computar voto, tente novamente</Alert> : null} : message === "error" ? <Alert severity="error">Erro ao computar voto, tente novamente</Alert> : null}
<p className="text-darkGray-HC-white-underline pb-4 pt-4 text-lg font-semibold">Verifique as seguintes denúncias sobre o recurso</p> <p className="text-darkGray-HC-white pb-4 pt-4 text-lg font-semibold">Verifique as seguintes denúncias sobre o recurso</p>
<ul className="list-disc list-inside"> <ul className="list-disc list-inside">
{questions.map((item, i) => ( {questions.map((item, i) => (
<li key={i} className="text-darkGray-HC-white-underline text-lg font-normal"> <li key={i} className="text-darkGray-HC-white text-lg font-normal">
{item.reason}: {item.description} {item.reason}: {item.description}
</li> </li>
))} ))}
...@@ -190,14 +192,14 @@ export default function ComplaintModal({ open, onClose, name, id, setSubmitted } ...@@ -190,14 +192,14 @@ export default function ComplaintModal({ open, onClose, name, id, setSubmitted }
<div className="flex justify-end mt-7"> <div className="flex justify-end mt-7">
<button <button
onClick={() => handleOpen(1, 0)} onClick={() => handleOpen(1, 0)}
className="bg-turquoise px-3 py-2 mr-1 rounded-lg text-white-HC-dark-underline hover:bg-ice-HC-dark-hover font-semibold" className="bg-turquoise-HC-white hover:bg-darkTurquoise-HC-dark px-3 py-2 mr-1 rounded-lg text-white-HC-dark-underline hover:text-ice-HC-white font-semibold outline outline-1 outline-ice-HC-white"
> >
Votar para reativar Votar para reativar
</button> </button>
<button <button
onClick={() => handleOpen(0, 1)} onClick={() => handleOpen(0, 1)}
className="bg-red px-3 py-2 ml-1 rounded-lg text-white-HC-dark-underline font-semibold hover:bg-turquoise-hover" className="bg-red-HC-white px-3 py-2 ml-1 rounded-lg text-white-HC-dark-underline font-semibold outline outline-1 outline-ice-HC-white"
> >
Votar para remover Votar para remover
</button> </button>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment