diff --git a/src/renderer/components/Schedule/EventCard.tsx b/src/renderer/components/Schedule/EventCard.tsx index 9c1ff86..fdc384b 100644 --- a/src/renderer/components/Schedule/EventCard.tsx +++ b/src/renderer/components/Schedule/EventCard.tsx @@ -4,6 +4,8 @@ import { Link } from 'react-router-dom' import Banner from './Banner' import MatchCard from './MatchCard' +const electron = window.require('electron') + const Wrapper = styled.div` width: 100%; height: auto; @@ -48,23 +50,38 @@ const EventCard = ({ start={match.startDate} /> ) - return match.status === 'PENDING' ? ( - - {content} - - ) : ( - - {content} - - ) + if (match.status === 'ONGOING') { + return ( +
{ + electron.remote.app.hide() + electron.shell.openExternal( + 'https://www.youtube.com/overwatchleague' + ) + }} + > + {content} +
+ ) + } else { + return match.status === 'PENDING' ? ( + + {content} + + ) : ( + + {content} + + ) + } })}