From 1d56fee6de2080f689db546916604f5cb3d96764 Mon Sep 17 00:00:00 2001 From: Tee Date: Fri, 17 Apr 2020 10:59:07 -0400 Subject: [PATCH] Alternate between online & ticket link in Banner --- src/renderer/components/Schedule/Banner.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/renderer/components/Schedule/Banner.tsx b/src/renderer/components/Schedule/Banner.tsx index a7adb18..1a58597 100644 --- a/src/renderer/components/Schedule/Banner.tsx +++ b/src/renderer/components/Schedule/Banner.tsx @@ -6,7 +6,7 @@ import { faMapMarkerAlt, faTicketAlt } from '@fortawesome/free-solid-svg-icons' import Colors from '../../../resources/Colors' -// const electron = window.require('electron') +const electron = window.require('electron') const BannerBackground = styled.div<{ imageUrl: string @@ -97,15 +97,16 @@ const Banner = (props: Props) => { transform: 'rotate(-45deg)', }} /> - online - {/* { electron.remote.app.hide() - electron.shell.openExternal(props.ticketLink) + electron.shell.openExternal( + props.ticketLink || 'https://www.youtube.com/overwatchleague' + ) }} > - tickets - */} + {props.host.toLowerCase() === 'owl' ? 'online' : 'tickets'} +