Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
registrations: Close Registrations
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithpabbati committed Jan 1, 2020
1 parent c127928 commit a33360d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
8 changes: 0 additions & 8 deletions src/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,6 @@ const Header = () => {
Proposal Guidelines
</Link>
</NavbarItem>
<NavbarItem>
<Link
to="/registrations/student-registration"
className={`navbar-item has-text-light`}
>
Student Registration
</Link>
</NavbarItem>
</NavbarEnd>
</NavbarMenu>
</Navbar>
Expand Down
4 changes: 2 additions & 2 deletions src/components/rsvpForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RSVPForm extends React.Component {
phone: '',
response: true,
details: '',
loading: false,
loading: true,
successText: '',
errorText: ''
}
Expand Down Expand Up @@ -96,7 +96,7 @@ class RSVPForm extends React.Component {
</div>
</form> : this.state.successText !== '' ?
<div className="alert alert-success">Thank you! Please inform your friends too about submitting their proposal.</div>
: <div className="alert alert-warning">Submitting. Please Wait</div>
: <div className="alert alert-warning">Registration are closed.</div>
}
{
this.state.errorText !== '' ?
Expand Down
4 changes: 2 additions & 2 deletions src/pages/registrations/student-registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ProjectRegistration = props => {
const siteTitle = data.site.siteMetadata.title;
const [errorText, setErrorText] = useState("");
const [successText, setSuccessText] = useState("");
const [loading, setLoading] = useState(false);
const [loading, setLoading] = useState(true);

const { handleInputChange, inputs } = useSubmitForm();

Expand Down Expand Up @@ -228,7 +228,7 @@ const ProjectRegistration = props => {
back to soon, meanwhile dont forget to bring your friends as well!
</div>
) : (
<div className="alert alert-warning">Submitting. Please Wait</div>
<div className="alert alert-warning">Registrations are closed.</div>
)}
</Layout>
);
Expand Down

0 comments on commit a33360d

Please sign in to comment.