diff --git a/web/package.json b/web/package.json index d21da96b..f5ad181f 100644 --- a/web/package.json +++ b/web/package.json @@ -22,7 +22,8 @@ "lodash": "4.17.21", "next": "12.0.7", "react": "17.0.2", - "react-dom": "17.0.2" + "react-dom": "17.0.2", + "react-expanding-textarea": "^2.3.4" }, "devDependencies": { "@tailwindcss/forms": "0.4.0", diff --git a/web/pages/create.tsx b/web/pages/create.tsx index 467cb407..980443cc 100644 --- a/web/pages/create.tsx +++ b/web/pages/create.tsx @@ -2,6 +2,7 @@ import router from 'next/router' import { useEffect, useState } from 'react' import clsx from 'clsx' import dayjs from 'dayjs' +import Textarea from 'react-expanding-textarea' import { CreatorContractsList } from '../components/contracts-list' import { Spacer } from '../components/layout/spacer' @@ -12,6 +13,7 @@ import { Page } from '../components/page' import { formatMoney } from '../lib/util/format' import { AdvancedPanel } from '../components/advanced-panel' import { createContract } from '../lib/firebase/api-call' +import { Row } from '../components/layout/row' // Allow user to create a new contract export default function NewContract() { @@ -101,10 +103,9 @@ export default function NewContract() { Question - setQuestion(e.target.value || '')} @@ -117,20 +118,30 @@ export default function NewContract() { - + @@ -139,8 +150,9 @@ export default function NewContract() { -