-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2414 from Giveth/develop
Mt Pelerin Banner release
- Loading branch information
Showing
72 changed files
with
2,727 additions
and
1,560 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
Large diffs are not rendered by default.
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
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 @@ | ||
import HowToBuyXDAI from '@/components/views/purchase/HowToBuyXdai'; | ||
|
||
export default function HowToBuyXDAPage() { | ||
return <HowToBuyXDAI />; | ||
} |
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 @@ | ||
import PurchaseXDai from '@/components/views/purchase/PurchaseXDai'; | ||
|
||
export default function PurchaseXDaiPage() { | ||
return <PurchaseXDai />; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ export const CAMPAIGN_CORE_FIELDS = gql` | |
__typename | ||
id | ||
title | ||
hashtags | ||
slug | ||
isFeatured | ||
isNew | ||
|
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ export const DONATION_CORE_FIELDS = gql` | |
createdAt | ||
donationType | ||
status | ||
onramperId | ||
} | ||
`; | ||
|
||
|
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 |
---|---|---|
|
@@ -95,6 +95,7 @@ export const FETCH_USER_DONATIONS = gql` | |
} | ||
createdAt | ||
status | ||
onramperId | ||
} | ||
totalCount | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React, { FC } from 'react'; | ||
import Image from 'next/image'; | ||
import { ICurrencyIconProps } from './type'; | ||
|
||
export const IconOptimism: FC<ICurrencyIconProps> = ({ size = 16 }) => { | ||
return ( | ||
<Image | ||
src={`/images/currencies/optimism/16.svg`} | ||
alt='optimism' | ||
width={size} | ||
height={size} | ||
loading='lazy' | ||
/> | ||
); | ||
}; |
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
107 changes: 107 additions & 0 deletions
107
src/components/modals/FiatDonationConfirmationModal.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,107 @@ | ||
import { FC } from 'react'; | ||
import { useIntl } from 'react-intl'; | ||
import styled from 'styled-components'; | ||
import { Button, P } from '@giveth/ui-design-system'; | ||
import Image from 'next/image'; | ||
|
||
import { Modal } from '@/components/modals/Modal'; | ||
import { IFiatConfirmationModal } from '@/types/common'; | ||
import { Bullets } from '@/components/styled-components/Bullets'; | ||
import BulbIcon from '/public/images/icons/lightbulb.svg'; | ||
import { useModalAnimation } from '@/hooks/useModalAnimation'; | ||
|
||
export const FiatDonationConfirmationModal: FC<IFiatConfirmationModal> = ({ | ||
setShowModal, | ||
continueProcess, | ||
type, | ||
}) => { | ||
const { isAnimating, closeModal } = useModalAnimation(setShowModal); | ||
const { formatMessage } = useIntl(); | ||
|
||
return ( | ||
<Modal | ||
closeModal={closeModal} | ||
isAnimating={isAnimating} | ||
headerIcon={<Image src={BulbIcon} alt='light bulb' />} | ||
headerTitle={formatMessage({ id: 'label.before_you_start' })} | ||
headerTitlePosition='left' | ||
> | ||
<Container> | ||
<Bullets> | ||
{type === 'onramper' ? ( | ||
<> | ||
<li> | ||
{formatMessage({ | ||
id: 'label.you_will_be_purchasing_crypto_on_behalf_of_the_project_account', | ||
})} | ||
</li> | ||
<li> | ||
{formatMessage({ | ||
id: 'label.note_that_your_donations_history_will_be_updated_some_time_after', | ||
})} | ||
</li> | ||
<li> | ||
{formatMessage({ | ||
id: 'label.donations_will_only_be_confirmed_after_a_while_of_being_sent', | ||
})} | ||
</li> | ||
</> | ||
) : ( | ||
type === 'donorbox' && ( | ||
<> | ||
<li> | ||
{formatMessage({ | ||
id: 'label.this_is_a_way_to_support_giveth_using_our', | ||
})}{' '} | ||
<a | ||
href='https://www.sdgimpactfund.org/giveth-foundation' | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
{formatMessage({ | ||
id: 'label.sdg_impact_fund', | ||
})} | ||
</a> | ||
</li> | ||
<li> | ||
{formatMessage({ | ||
id: 'label.youll_get_a_confirmation_from_donorbox_on_your_email', | ||
})} | ||
</li> | ||
</> | ||
) | ||
)} | ||
</Bullets> | ||
<Buttons> | ||
<OkButton | ||
label={formatMessage({ id: 'label.cancel' })} | ||
onClick={closeModal} | ||
buttonType='texty' | ||
/> | ||
<OkButton | ||
label={formatMessage({ id: 'label.continue' })} | ||
onClick={continueProcess} | ||
buttonType='secondary' | ||
/> | ||
</Buttons> | ||
</Container> | ||
</Modal> | ||
); | ||
}; | ||
|
||
const Container = styled(P)` | ||
width: 350px; | ||
text-align: left; | ||
padding: 0 30px 30px; | ||
`; | ||
|
||
const OkButton = styled(Button)` | ||
width: 300px; | ||
height: 48px; | ||
margin: 48px auto 0; | ||
`; | ||
|
||
const Buttons = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
`; |
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
Oops, something went wrong.
0dec243
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
giveth-dapps-v2 – ./
www.giveth.io
giveth-dapps-v2-givethio.vercel.app
giveth-dapps-v2-git-main-givethio.vercel.app
giveth.io