Skip to content

Commit

Permalink
fix: ui tweaks for setting own price
Browse files Browse the repository at this point in the history
  • Loading branch information
IanKrieger committed Sep 8, 2023
1 parent fa01f8d commit 04fb536
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function BudgetField() {
.
</Typography>
) : (
<Stack direction="row" spacing={2} alignItems="center">
<Stack direction="column" spacing={2} alignItems="flex-start">
<FormikTextField
fullWidth={false}
name="price"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import { FormikSubmitButton, useIsEdit } from "form/FormikHelpers";
import { useAdvertiser } from "auth/hooks/queries/useAdvertiser";

export function PaymentButton(props: { hasPaymentIntent: boolean }) {
const { advertiser } = useAdvertiser();
const { isEdit } = useIsEdit();
const paymentText = "Make payment & submit for approval";

console.log();
return (
<FormikSubmitButton
isCreate={!props.hasPaymentIntent || !isEdit}
label={
props.hasPaymentIntent
props.hasPaymentIntent || advertiser.selfServiceSetPrice
? `${isEdit ? "Update" : "Create"} & Submit For Approval`
: paymentText
}
Expand Down

0 comments on commit 04fb536

Please sign in to comment.