-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ebf396
commit 1541573
Showing
7 changed files
with
69 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@adyen/adyen-web': minor | ||
--- | ||
|
||
Updated DonationComponent UI |
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
18 changes: 0 additions & 18 deletions
18
packages/lib/src/components/Donation/components/CampaignContainer.tsx
This file was deleted.
Oops, something went wrong.
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
27 changes: 27 additions & 0 deletions
27
packages/lib/src/components/Donation/components/CampaignInfo.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,27 @@ | ||
import { Fragment, h } from 'preact'; | ||
import Img from '../../internal/Img'; | ||
|
||
export interface CampaignInfoProps { | ||
logoUrl?: string; | ||
nonprofitName?: string; | ||
causeName?: string; | ||
bannerUrl?: string; | ||
} | ||
|
||
export default function CampaignInfo({ logoUrl = '', nonprofitName = '', causeName = '', bannerUrl = '' }: CampaignInfoProps) { | ||
const backgroundImage = `url(${bannerUrl})`; | ||
|
||
return ( | ||
<Fragment> | ||
<Img className="adyen-checkout__campaign-background-image" style={{ backgroundImage }} backgroundUrl={bannerUrl} /> | ||
|
||
<div className="adyen-checkout__campaign-content"> | ||
{logoUrl && <img src={logoUrl} className="adyen-checkout__campaign-logo" alt={nonprofitName} />} | ||
<div> | ||
{nonprofitName && <div className="adyen-checkout__campaign-title">{nonprofitName}</div>} | ||
{causeName && <div className="adyen-checkout__campaign-cause">{causeName}</div>} | ||
</div> | ||
</div> | ||
</Fragment> | ||
); | ||
} |
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