diff --git a/web/pages/create.tsx b/web/pages/create.tsx index 5806f9ec..6bdd3d05 100644 --- a/web/pages/create.tsx +++ b/web/pages/create.tsx @@ -8,6 +8,8 @@ import { useUser } from '../hooks/use-user' import { path } from '../lib/firebase/contracts' import { createContract } from '../lib/service/create-contract' import { Page } from '../components/page' +import { Row } from '../components/layout/row' +import clsx from 'clsx' // Allow user to create a new contract export default function NewContract() { @@ -21,6 +23,7 @@ export default function NewContract() { const [question, setQuestion] = useState('') const [description, setDescription] = useState('') const [isSubmitting, setIsSubmitting] = useState(false) + const [collapsed, setCollapsed] = useState(true) async function submit() { // TODO: add more rigorous error handling for question @@ -49,52 +52,92 @@ export default function NewContract() { {/* Create a Tailwind form that takes in all the fields needed for a new contract */} {/* When the form is submitted, create a new contract in the database */}