@@ -10,7 +10,7 @@ import Button from 'components/generic/Button'
1010import * as AuthSelectors from 'redux/auth/selectors'
1111import { useTranslation } from 'react-i18next'
1212
13- export default ( { event, registration, isPreview = false } ) => {
13+ export default ( { event, registration } ) => {
1414 const { t } = useTranslation ( )
1515 const dispatch = useDispatch ( )
1616 const match = useRouteMatch ( )
@@ -37,7 +37,6 @@ export default ({ event, registration, isPreview = false }) => {
3737 < Grid container spacing = { 1 } >
3838 < Grid item xs = { 12 } >
3939 < Button
40- disabled = { isPreview }
4140 onClick = { ( ) =>
4241 dispatch ( push ( `${ match . url } /register` ) )
4342 }
@@ -49,10 +48,11 @@ export default ({ event, registration, isPreview = false }) => {
4948 </ Grid >
5049 < Grid item xs = { 12 } >
5150 < Button
52- disabled = { isPreview }
5351 onClick = { ( ) =>
5452 dispatch (
55- push ( `/dashboard/event/${ event . slug } ` ) ,
53+ push (
54+ `/dashboard/event/${ event . slug } ` ,
55+ ) ,
5656 )
5757 }
5858 variant = "applicationsClosed"
@@ -66,7 +66,6 @@ export default ({ event, registration, isPreview = false }) => {
6666 } else {
6767 return (
6868 < Button
69- disabled = { isPreview }
7069 onClick = { ( ) =>
7170 dispatch ( push ( `${ match . url } /register` ) )
7271 }
@@ -80,7 +79,6 @@ export default ({ event, registration, isPreview = false }) => {
8079 } else {
8180 return (
8281 < Button
83- disabled = { isPreview }
8482 onClick = { ( ) =>
8583 dispatch (
8684 push ( `/login` , {
@@ -101,7 +99,6 @@ export default ({ event, registration, isPreview = false }) => {
10199 if ( hasRegistration ) {
102100 return (
103101 < Button
104- disabled = { isPreview }
105102 onClick = { ( ) =>
106103 dispatch ( push ( `/dashboard/event/${ event . slug } ` ) )
107104 }
@@ -121,7 +118,6 @@ export default ({ event, registration, isPreview = false }) => {
121118 } else {
122119 return (
123120 < Button
124- disabled = { isPreview }
125121 onClick = { ( ) =>
126122 dispatch ( push ( '/login' , { nextRoute : match . url } ) )
127123 }
0 commit comments