Skip to content

Commit

Permalink
Merge pull request #5 from codigofalado/development
Browse files Browse the repository at this point in the history
Start over button added
  • Loading branch information
henriquepw authored Jun 1, 2020
2 parents d776a19 + 2bec6e7 commit e6a904b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/result/index.tsx
Original file line number Diff line number Diff line change
@@ -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();
Expand Down Expand Up @@ -42,6 +43,9 @@ const Result: FC = () => {
</li>
))}
</Podium>
<ButtonContainer>
<Button to="/battlefield">Start Over</Button>
</ButtonContainer>
<Rank>
{placing.map((fighter, index) => (
<Position key={fighter.id}>
Expand Down
5 changes: 5 additions & 0 deletions src/pages/result/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
`;

0 comments on commit e6a904b

Please sign in to comment.