Skip to content

Commit

Permalink
Rename ticket tab to online if hosted by owl
Browse files Browse the repository at this point in the history
  • Loading branch information
acupoftee committed Apr 17, 2020
1 parent 4306215 commit 291777b
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,12 +6,12 @@ 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
}>`
background-image: url(${props => props.imageUrl});
background-image: url(${(props) => props.imageUrl});
background-size: cover;
background-position: 100% 100%;
width: 100%;
Expand All @@ -25,7 +25,7 @@ const BannerBackground = styled.div<{
const BannerLogo = styled.div<{
logoUrl: string
}>`
background-image: url(${props => props.logoUrl});
background-image: url(${(props) => props.logoUrl});
background-size: contain;
background-position: center;
background-repeat: no-repeat;
Expand All @@ -39,7 +39,7 @@ const EventWrapper = styled(Flex)<{
}>`
justify-content: center;
flex-wrap: wrap;
background-color: ${props => props.background};
background-color: ${(props) => props.background};
`

const EventInfo = styled(Flex)`
Expand Down Expand Up @@ -97,14 +97,15 @@ const Banner = (props: Props) => {
transform: 'rotate(-45deg)',
}}
/>
<TicketLink
online
{/* <TicketLink
onClick={() => {
electron.remote.app.hide()
electron.shell.openExternal(props.ticketLink)
}}
>
tickets
</TicketLink>
</TicketLink> */}
</EventInfo>
<EventInfo>
<FontAwesomeIcon
Expand Down

0 comments on commit 291777b

Please sign in to comment.