Skip to content

Commit

Permalink
Alternate between online & ticket link in Banner
Browse files Browse the repository at this point in the history
  • Loading branch information
acupoftee committed Apr 17, 2020
1 parent 291777b commit 1d56fee
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/renderer/components/Schedule/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -97,15 +97,16 @@ const Banner = (props: Props) => {
transform: 'rotate(-45deg)',
}}
/>
online
{/* <TicketLink
<TicketLink
onClick={() => {
electron.remote.app.hide()
electron.shell.openExternal(props.ticketLink)
electron.shell.openExternal(
props.ticketLink || 'https://www.youtube.com/overwatchleague'
)
}}
>
tickets
</TicketLink> */}
{props.host.toLowerCase() === 'owl' ? 'online' : 'tickets'}
</TicketLink>
</EventInfo>
<EventInfo>
<FontAwesomeIcon
Expand Down

0 comments on commit 1d56fee

Please sign in to comment.