colouring-montreal/app/src/frontend/multi-edit.js

26 lines
659 B
JavaScript
Raw Normal View History

2019-05-09 04:16:36 -04:00
import React from 'react';
import { Redirect } from 'react-router-dom';
import Sidebar from './sidebar';
const MultiEdit = (props) => {
if (!props.user){
return <Redirect to="/sign-up.html" />
}
2019-05-10 09:00:20 -04:00
const cat = props.match.params.cat;
2019-05-09 04:16:36 -04:00
return (
<Sidebar
title={`Quick edit`}
back={`/edit/${cat}.html`}>
<section className="data-section">
<p className="data-intro">Click a building to colour</p>
<p className="data-intro">Set <strong>Year built</strong> to <strong>1999</strong></p>
</section>
</Sidebar>
);
}
export default MultiEdit;