Skip to content

Instantly share code, notes, and snippets.

@polyglotpiglet
Created June 2, 2020 09:29
Show Gist options
  • Save polyglotpiglet/e90634e3c07d8952cfade91f2ee4f373 to your computer and use it in GitHub Desktop.
Save polyglotpiglet/e90634e3c07d8952cfade91f2ee4f373 to your computer and use it in GitHub Desktop.
class Availability extends React.Component {
constructor(props) {
super(props);
this.state = {
calendar: null
};
}
componentDidMount() {
setTimeout(() => {
this.setState({
calendar: (<BookingCalendar bookings={[]} disableHistory={true} />)
});
}, 2500);
}
render() {
return (
<Container>
<Row className="justify-content-center">
<Col md="6" sm="12" className="calendar">
{this.state.calendar}
</Col>
</Row>
</Container>
)
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment