diff --git a/components/bounty-form.js b/components/bounty-form.js index 7043512f..9d40966e 100644 --- a/components/bounty-form.js +++ b/components/bounty-form.js @@ -5,7 +5,7 @@ import TextareaAutosize from 'react-textarea-autosize' import Countdown from './countdown' import AdvPostForm, { AdvPostInitial } from './adv-post-form' import FeeButton, { EditFeeButton } from './fee-button' -import { InputGroup } from 'react-bootstrap' +import { InputGroup, Button } from 'react-bootstrap' import { bountySchema } from '../lib/validate' import { SubSelectInitial } from './sub-select-form' @@ -115,13 +115,16 @@ export function BountyForm ({
{item ? ( - +
+ + +
) : ( router.push(`/items/${item.id}`)}> - +
+ + +
) : }
{item - ? save + ? ( +
+ + save +
+ ) : ( post 1000 sats diff --git a/components/link-form.js b/components/link-form.js index be6802c2..1592c252 100644 --- a/components/link-form.js +++ b/components/link-form.js @@ -177,10 +177,13 @@ export function LinkForm ({ item, sub, editThreshold, children }) { router.push(`/items/${item.id}`)}> - +
+ + +
) : (
diff --git a/components/poll-form.js b/components/poll-form.js index fa5fd322..0591e0e5 100644 --- a/components/poll-form.js +++ b/components/poll-form.js @@ -94,10 +94,13 @@ export function PollForm ({ item, sub, editThreshold, children }) { router.push(`/items/${item.id}`)}> - +
+ + +
) : !data.user) -export function BioForm ({ handleSuccess, bio }) { +export function BioForm ({ handleDone, bio }) { const [upsertBio] = useMutation( gql` ${ITEM_FIELDS} @@ -56,7 +56,7 @@ export function BioForm ({ handleSuccess, bio }) { if (error) { throw new Error({ message: error.toString() }) } - handleSuccess && handleSuccess() + handleDone?.() }} > -
+
+ {bio?.text ? - setEdit(false)} /> + setEdit(false)} />
) : ) : (mine &&
{create - ? setCreate(false)} /> + ? setCreate(false)} /> : ( mine &&