Skip to content

Commit

Permalink
fix: ui tweaks for setting own price (#882)
Browse files Browse the repository at this point in the history
* fix: ui tweaks for setting own price

* fix: verbiage
  • Loading branch information
IanKrieger authored Sep 11, 2023
1 parent fa01f8d commit c519a65
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/auth/registration/NameField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function NameField() {
<Box flexGrow={1}>
<Typography variant="subtitle1" gutterBottom>
Thank you for choosing Brave&rsquo;s Ads Platform! Let&rsquo;s get you
setup with your account. First, we&rsquo;ll need your info.
set up with your account. First, we&rsquo;ll need your info.
</Typography>

<MarginedDivider />
Expand Down
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 c519a65

Please sign in to comment.