From 2bec6e77523f52761189c758b71a69d3c2c14133 Mon Sep 17 00:00:00 2001 From: Henrique Miranda Date: Mon, 1 Jun 2020 20:07:35 -0300 Subject: [PATCH] :sparkles: feat: add start over button --- src/pages/result/index.tsx | 6 +++++- src/pages/result/styles.ts | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/pages/result/index.tsx b/src/pages/result/index.tsx index 0bd31f1..4039ba8 100644 --- a/src/pages/result/index.tsx +++ b/src/pages/result/index.tsx @@ -1,12 +1,13 @@ import React, { FC } from 'react'; +import Button from '~/components/Button'; import Layout from '~/Layout'; import { useRepository } from '~/hooks/repository'; import trophy from '~/assets/trophy.svg'; -import { Header, Podium, Rank, Position } from './styles'; +import { Header, Podium, Rank, Position, ButtonContainer } from './styles'; const Result: FC = () => { const { owner, repoName, fighters } = useRepository(); @@ -42,6 +43,9 @@ const Result: FC = () => { ))} + + + {placing.map((fighter, index) => ( diff --git a/src/pages/result/styles.ts b/src/pages/result/styles.ts index 1b67f7d..bdd158c 100644 --- a/src/pages/result/styles.ts +++ b/src/pages/result/styles.ts @@ -152,3 +152,8 @@ export const Position = styled(card).attrs({ transform: translateX(14px) translateZ(0); } `; + +export const ButtonContainer = styled.div` + display: flex; + justify-content: center; +`;