NewRoom.tsx (1206B)
1 import { PureComponent } from "react"; 2 import NewRoomForm from "./forms/NewRoomForm"; 3 4 type Props = Record<string, unknown>; 5 type State = Record<string, unknown>; 6 7 export default class NewRoom extends PureComponent<Props, State> { 8 render() { 9 return ( 10 <main className="m-8"> 11 <h1 className="text-3xl font-bold underline text-gray-900 dark:text-gray-200 mb-4">Add new Room</h1> 12 <div className='flex flex-row justify-center items-center flex-wrap'> 13 <div className='flex flex-row flex-wrap justify-start'> 14 <section className='mr-16 mb-16'> 15 <NewRoomForm /> 16 </section> 17 <section className='mr-16 mb-16'> 18 <h3 className="text-2xl font-bold text-gray-900 dark:text-gray-200 mb-2">What will this do?</h3> 19 <p className="text-base font-normal text-gray-900 dark:text-gray-200 mb-2"> 20 TODO explenation 21 </p> 22 </section> 23 </div> 24 </div> 25 </main> 26 ); 27 } 28 }