import { h, Component } from 'preact'; import PropTypes from 'prop-types'; import { updateOnboarding } from '../utilities'; class ClosingSlide extends Component { componentDidMount() { updateOnboarding('closing slide'); } render() { const { previousLocation } = this.props; const previousLocationListElement = () => { if ( previousLocation !== 'none' && previousLocation !== null && !previousLocation.startsWith('javascript') ) { return (
Or go back to the page you were on before you signed up
{previousLocation}
); } return null; }; return (

You‘re a part of the community! {' '} 🎉

What next?

😊 Join the Welcome Thread

✍️ Write your first DEV post

🤓 Read all-time top posts

💅 Customize your profile

{previousLocationListElement()}
); } } ClosingSlide.propTypes = { previousLocation: PropTypes.string.isRequired, }; export default ClosingSlide;