diff --git a/src/events/hacktoberfest/components/registration.js b/src/events/hacktoberfest/components/registration.js index 91bd48c..44dadb4 100644 --- a/src/events/hacktoberfest/components/registration.js +++ b/src/events/hacktoberfest/components/registration.js @@ -37,7 +37,7 @@ class Registration extends React.Component { successText: '', loading: false, count: 0, - slotsLeft: 200 + slotsLeft: 250 } this.handleNameChange = this.handleNameChange.bind(this); this.handleEmailChange = this.handleEmailChange.bind(this); @@ -91,7 +91,7 @@ class Registration extends React.Component { getRegisteredCount = async() => { const variables = {formID: 1} const response = await dataFetch({ query: regquery, variables }); - this.setState({count: response.data.registrationForm.applicationsCount, slotsLeft: 200-response.data.registrationForm.applicationsCount}) + this.setState({count: response.data.registrationForm.applicationsCount, slotsLeft: 250-response.data.registrationForm.applicationsCount}) } componentDidMount() { @@ -118,7 +118,7 @@ class Registration extends React.Component {

{this.state.count} Already Registered.
- {this.state.count < 200 ? <>{this.state.slotsLeft>=0 ? this.state.slotsLeft: 0} Slots Left.
: Join the WaitList} + {this.state.count < 250 ? <>{this.state.slotsLeft>=0 ? this.state.slotsLeft: 0} Slots Left.
: <> Join the WaitList
} Register Now

Sign up for the meet-up for free by filling up the form below, diff --git a/src/events/hacktoberfest/index.js b/src/events/hacktoberfest/index.js index aaa6ade..35884bd 100644 --- a/src/events/hacktoberfest/index.js +++ b/src/events/hacktoberfest/index.js @@ -1,4 +1,4 @@ -import React, { useState } from "react" +import React from "react" import './styles/style.sass' import Header from './components/header' @@ -13,7 +13,7 @@ const Hacktoberfest = () => { <>

- +