Skip to content

Commit

Permalink
Botão continuar criado na tela de resultados
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdlm committed Oct 19, 2021
1 parent bb674c3 commit 334400f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
28 changes: 23 additions & 5 deletions pages/quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,31 @@ function ResultWidget({ results }) {
))}
</ul>
</Widget.Content>
<Button
onClick={() => {
router.push(`/`);
<div
style={{
display: "flex",
flexWrap: "wrap",
justifyContent: "center",
width: "100%",
}}
>
Voltar para inicio
</Button>
<Button
style={{ marginBottom: "0.5rem", width: "80%" }}
onClick={() => {
window.location.reload();
}}
>
Continuar
</Button>
<Button
style={{ marginBottom: "0.5rem", width: "80%" }}
onClick={() => {
router.push(`/`);
}}
>
Voltar para inicio
</Button>
</div>
</Widget>
);
}
Expand Down
3 changes: 0 additions & 3 deletions src/components/Main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@ export function MainComplete({ handleModal }) {
<Main.MiniCard
onClick={() => {
router.push(`/quiz`);
// {
// handleRounds();
// }
}}
>
<img
Expand Down

1 comment on commit 334400f

@vercel
Copy link

@vercel vercel bot commented on 334400f Oct 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.