-
Notifications
You must be signed in to change notification settings - Fork 15
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
Showing
9 changed files
with
262 additions
and
176 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 |
---|---|---|
|
@@ -4,11 +4,22 @@ import React from 'react' | |
import { TextBackButton } from 'packages/app' | ||
import { Linking } from 'react-native' | ||
|
||
import { useIsFunkeWallet } from '@easypid/hooks/useFeatureFlag' | ||
import pj from '../../../package.json' | ||
|
||
const TEXT_FUNKE = `This app was created by Animo Solutions in the context of the SPRIN-D Funke ‘EUDI Wallet Prototypes’. It | ||
serves as a prototype for future wallet providers. All code is available under Apache 2.0.` | ||
|
||
const TEXT_PARADYM = | ||
'This app was created by Animo Solutions as a companion app for Paradym. All code is available under Apache 2.0.' | ||
|
||
export function FunkeAboutScreen() { | ||
const isFunkeWallet = useIsFunkeWallet() | ||
|
||
const openContact = () => { | ||
Linking.openURL('mailto:[email protected]?subject=Reach out from Funke EUDI Wallet') | ||
Linking.openURL( | ||
`mailto:[email protected]?subject=Reach out from ${isFunkeWallet ? 'Funke EUDI Wallet' : 'Paradym Wallet'}` | ||
) | ||
} | ||
|
||
const openPrivacyPolicy = () => { | ||
|
@@ -20,15 +31,13 @@ export function FunkeAboutScreen() { | |
<HeaderContainer title="About the wallet" /> | ||
<YStack fg={1} px="$4" gap="$4"> | ||
<YStack gap="$2"> | ||
<Paragraph color="$grey-700"> | ||
This app was created by Animo Solutions in the context of the SPRIN-D Funke ‘EUDI Wallet Prototypes’. It | ||
serves as a prototype for future wallet providers. All code is available under Apache 2.0. | ||
</Paragraph> | ||
<Paragraph color="$grey-700">{isFunkeWallet ? TEXT_FUNKE : TEXT_PARADYM}</Paragraph> | ||
<Paragraph> | ||
For more information on the project visit sprind.org or reach out to{' '} | ||
For more information, reach out to{' '} | ||
<Paragraph fontWeight="$semiBold" color="$primary-500" onPress={openContact}> | ||
[email protected] | ||
</Paragraph> | ||
. | ||
</Paragraph> | ||
</YStack> | ||
<YStack gap="$2" fg={1} jc="space-between"> | ||
|
@@ -40,7 +49,7 @@ export function FunkeAboutScreen() { | |
onPress={openPrivacyPolicy} | ||
/> | ||
<Paragraph py="$4" mx="auto" variant="sub" fontSize={13} fontWeight="$medium"> | ||
EasyPID version: {pj.version} | ||
Paradym Wallet version: {pj.version} | ||
</Paragraph> | ||
</YStack> | ||
</YStack> | ||
|
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
Oops, something went wrong.