Skip to content

Commit

Permalink
Merge pull request #15 from Polynomeer/feature/14/routinng
Browse files Browse the repository at this point in the history
fix: Route game component (#14)
  • Loading branch information
juddroid authored May 7, 2021
2 parents 152e914 + 2f2c365 commit 3b1846f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
5 changes: 5 additions & 0 deletions FE/baseball/src/Components/Home/HomeStyles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ const HomeStyles = {
}
`,

Link: styled.div`
width: 100%;
height: 100%;
`,

VS: styled.div`
display: flex;
align-items: center;
Expand Down
13 changes: 11 additions & 2 deletions FE/baseball/src/Components/Home/MatchInfo/MatchBox/Match.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
import { HomeStyles as S } from '@/Components/Home/HomeStyles';
import { Link } from 'react-router-dom';
import TeamName from './TeamName';
import VS from './VS';

const Match = () => {
return (
<S.Match>
<TeamName />
<S.Link>
<Link to="/game">
<TeamName />
</Link>
</S.Link>
<VS />
<TeamName />
<S.Link>
<Link to="/game">
<TeamName />
</Link>
</S.Link>
</S.Match>
);
};
Expand Down

0 comments on commit 3b1846f

Please sign in to comment.