-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [#172526356] Adds Screen to explain why CIE login is not availa…
…ble (#1769) * Added information screen to explain why cie login is not supported * Fixed style and adds Android check to show further informations * fix lint error * change the icons on list * [#172526356] UI of the information in a separated component * Fix in typos and buttons inverted on landing * Adds conditional order of the 2 buttons to login * Fixes on reducer and components * Minor edit on texts Co-authored-by: Matteo Boschi <[email protected]>
- Loading branch information
1 parent
f222634
commit 5bc9437
Showing
11 changed files
with
267 additions
and
22 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 @@ | ||
To login you need a device with NFC technology and the operating system with the minimum requirements (**iOS** devices are not yet compatible but will become compatible with the next updates). |
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 @@ | ||
Specifically, the cases in which you **cannot** access with an Electronic Identity Card (CIE) on your Android device are: |
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 @@ | ||
Per effettuare il login è necessario avere un dispositivo con tecnologia NFC e il sistema operativo con i requisiti minimi necessari (i dispositivi **iOS** non sono ancora compatibili ma a breve lo diventeranno con i prossimi aggiornamenti). |
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 @@ | ||
Nello specifico, i casi in cui **non** è possibile accedere con Carta di Identità Elettronica (CIE) su dispositivo Android sono: |
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,73 @@ | ||
import { Body, List, ListItem, Text, View } from "native-base"; | ||
import * as React from "react"; | ||
import { Platform } from "react-native"; | ||
import I18n from "../../i18n"; | ||
import customVariables from "../../theme/variables"; | ||
import IconFont from "../ui/IconFont"; | ||
import Markdown from "../ui/Markdown"; | ||
|
||
type Props = { | ||
hasCieApiLevelSupport: boolean; | ||
hasCieNFCFeature: boolean; | ||
}; | ||
|
||
const ICON_SIZE = 16; | ||
|
||
const CieNotSupported: React.FunctionComponent<Props> = props => { | ||
return ( | ||
<React.Fragment> | ||
<Markdown> | ||
{I18n.t("authentication.landing.cie_unsupported.body")} | ||
</Markdown> | ||
{Platform.OS === "android" && ( | ||
<React.Fragment> | ||
<View spacer={true} /> | ||
<Markdown> | ||
{I18n.t("authentication.landing.cie_unsupported.android_desc")} | ||
</Markdown> | ||
<View spacer={true} extralarge={true} /> | ||
<List> | ||
<ListItem> | ||
<IconFont | ||
name="io-tick-big" | ||
size={ICON_SIZE} | ||
color={ | ||
props.hasCieApiLevelSupport | ||
? customVariables.brandLightGray | ||
: customVariables.contentPrimaryBackground | ||
} | ||
/> | ||
<Body> | ||
<Text> | ||
{I18n.t( | ||
"authentication.landing.cie_unsupported.os_version_unsupported" | ||
)} | ||
</Text> | ||
</Body> | ||
</ListItem> | ||
<ListItem> | ||
<IconFont | ||
name="io-tick-big" | ||
size={ICON_SIZE} | ||
color={ | ||
props.hasCieNFCFeature | ||
? customVariables.brandLightGray | ||
: customVariables.contentPrimaryBackground | ||
} | ||
/> | ||
<Body> | ||
<Text> | ||
{I18n.t( | ||
"authentication.landing.cie_unsupported.nfc_incompatible" | ||
)} | ||
</Text> | ||
</Body> | ||
</ListItem> | ||
</List> | ||
</React.Fragment> | ||
)} | ||
</React.Fragment> | ||
); | ||
}; | ||
|
||
export default CieNotSupported; |
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.