diff --git a/components/bounty-form.js b/components/bounty-form.js index 9d40966e..ad9de1c4 100644 --- a/components/bounty-form.js +++ b/components/bounty-form.js @@ -5,9 +5,10 @@ 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, Button } from 'react-bootstrap' +import { InputGroup } from 'react-bootstrap' import { bountySchema } from '../lib/validate' import { SubSelectInitial } from './sub-select-form' +import CancelButton from './cancel-button' export function BountyForm ({ item, @@ -116,7 +117,7 @@ export function BountyForm ({ {item ? (
- + router.back())}>cancel + ) +} diff --git a/components/discussion-form.js b/components/discussion-form.js index a4aad376..71de832d 100644 --- a/components/discussion-form.js +++ b/components/discussion-form.js @@ -12,6 +12,7 @@ import Delete from './delete' import { Button } from 'react-bootstrap' import { discussionSchema } from '../lib/validate' import { SubSelectInitial } from './sub-select-form' +import CancelButton from './cancel-button' export function DiscussionForm ({ item, sub, editThreshold, titleLabel = 'title', @@ -107,7 +108,7 @@ export function DiscussionForm ({
- + {item && } -
+
{item ? (
- + save
) diff --git a/components/link-form.js b/components/link-form.js index 1592c252..6f55fae9 100644 --- a/components/link-form.js +++ b/components/link-form.js @@ -13,6 +13,7 @@ import { Button } from 'react-bootstrap' import { linkSchema } from '../lib/validate' import Moon from '../svgs/moon-fill.svg' import { SubSelectInitial } from './sub-select-form' +import CancelButton from './cancel-button' export function LinkForm ({ item, sub, editThreshold, children }) { const router = useRouter() @@ -178,7 +179,7 @@ export function LinkForm ({ item, sub, editThreshold, children }) {
- + delete
- + !data.user) @@ -65,11 +66,8 @@ export function BioForm ({ handleDone, bio }) { as={TextareaAutosize} minRows={6} /> -
- +
+ {bio?.text ?