Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adição de "Histórico de contribuições" na page de Atualização de dados do Usuário [US33] #51

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions src/Pages/Protected/ProfileUpdate/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,19 @@
height: 44px;
}

.contribution-bttn {
background-color: transparent !important;

margin-top: 1.5rem !important;
margin-left: 0.8rem !important;

color: #332117 !important;
text-decoration: underline !important;
font-size: 13px !important;
text-align: left !important;
justify-content: flex-start !important;
}

.profile-status {
font-size: 18px;
font-weight: 600;
Expand Down Expand Up @@ -313,6 +326,23 @@
margin-left: 9rem;
}

.contribution-bttn {
background-color: transparent !important;

margin-top: 1.5rem !important;
margin-left: 0.5rem !important;

color: #332117 !important;
text-decoration: underline !important;
font-size: 16px !important;
text-align: left !important;
justify-content: flex-start !important;

cursor: pointer;
padding-left: 10px !important;
width: 48% !important;
}

.btn-logout {
background-color: transparent;
height: 40px;
Expand Down
18 changes: 18 additions & 0 deletions src/Pages/Protected/ProfileUpdate/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,18 @@ const ProfileUpdate = () => {
navigate("/home");
};

const handleNavigateToContributions = () => {
navigate(`/movimentacoes/contribuicoes/${nome}`, {
state: {
storagedUser,
nome,
celular,
email,
login,
},
});
};

return (
user && (
<section className="container">
Expand Down Expand Up @@ -127,6 +139,12 @@ const ProfileUpdate = () => {
{!isEmailValid && (
<label className="isEmailValid">*Insira um email válido</label>
)}
<Button
className="contribution-bttn"
onClick={handleNavigateToContributions}
>
Histórico de Contribuições
</Button>
</div>
<div className="section-doublebtn">
<SecondaryButton text="Cancelar" onClick={handleCancel} />
Expand Down
Loading