Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#409 see more buttton for upcoming events with no registration #461

Merged
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