Skip to content

Commit

Permalink
Merge pull request #461 from hackjunction/409_see_more_buttton_for_up…
Browse files Browse the repository at this point in the history
…coming_events_with_no_registration

#409 see more buttton for upcoming events with no registration
  • Loading branch information
Jussii committed Jun 22, 2021
2 parents d303980 + c69bd5b commit b6b1717
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion frontend/src/pages/_events/slug/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ export const EventDetailProvider = ({ children }) => {
const registration = registrationData?.myRegistration
const isRegistrationOpen =
event?._eventStatus === EventStatuses.REGISTRATION_OPEN.id
console.log('regidata', registrationData)
return (
<EventDetailContext.Provider
value={{
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/pages/_events/slug/default/EventButtons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React from 'react'
import { useDispatch, useSelector } from 'react-redux'
import { push } from 'connected-react-router'
import { useRouteMatch } from 'react-router'
import moment from 'moment-timezone'
import { EventStatuses } from '@hackjunction/shared'
import { Typography, Grid } from '@material-ui/core'

Expand All @@ -16,7 +15,6 @@ export default ({ event, registration }) => {
const dispatch = useDispatch()
const match = useRouteMatch()
const isAuthenticated = useSelector(AuthSelectors.isAuthenticated)
console.log('regi', registration)
const hasRegistration = registration
? registration.status != 'incomplete'
: false
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/_index/EventsGrid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default ({ events, loading = false, title }) => {
dispatch(push('/events/' + event.slug))
}
>
{t('Register_now_')}
{t('See_more_')}
</Button>
),
canApply && !event.galleryOpen && (
Expand Down

0 comments on commit b6b1717

Please sign in to comment.