-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A4A Dev Sites: Add notice when missing payment data for referral dev …
…sites (#94282) * Move marketplace useEffect to the useReferralDevSite * Add notice when missig tipalti referral data * Adjust notice styles * Adjust referral form fields style * Remove style import * Streamline styles application * Clean up styling --------- Co-authored-by: Ivan Ottinger <25105483+ivan-ottinger@users.noreply.github.com>
- Loading branch information
1 parent
9ae4c7d
commit 66ff5bb
Showing
8 changed files
with
86 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
client/a8c-for-agencies/sections/referrals/common/missing-payment-settings-notice/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Button } from '@wordpress/components'; | ||
import { useTranslate } from 'i18n-calypso'; | ||
import LayoutBanner from 'calypso/a8c-for-agencies/components/layout/banner'; | ||
|
||
import './style.scss'; | ||
|
||
type Props = { | ||
onClose: () => void; | ||
}; | ||
|
||
export const MissingPaymentSettingsNotice = ( { onClose }: Props ) => { | ||
const translate = useTranslate(); | ||
return ( | ||
<LayoutBanner | ||
level="warning" | ||
title={ translate( 'Your payment settings require action' ) } | ||
onClose={ onClose } | ||
className="missing-payment-settings-notice" | ||
> | ||
<div> | ||
{ translate( 'Please confirm your details before referring products to your clients.' ) } | ||
</div> | ||
<Button | ||
className="missing-payment-settings-notice__button is-dark" | ||
href="/referrals/payment-settings" | ||
> | ||
{ translate( 'Go to payment settings' ) } | ||
</Button> | ||
</LayoutBanner> | ||
); | ||
}; | ||
|
||
export default MissingPaymentSettingsNotice; |
9 changes: 9 additions & 0 deletions
9
client/a8c-for-agencies/sections/referrals/common/missing-payment-settings-notice/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.missing-payment-settings-notice { | ||
.notice-banner { | ||
padding: 24px; | ||
} | ||
|
||
.missing-payment-settings-notice__button { | ||
margin-block-start: 1rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters