Skip to content

Commit

Permalink
fix: Route game component (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
juddroid committed May 7, 2021
1 parent 152e914 commit 2f2c365
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 2f2c365

Please sign in to comment.