Skip to content

Commit

Permalink
feat: add loading info box during attestation (#1090)
Browse files Browse the repository at this point in the history
Signed-off-by: Bryce McMath <[email protected]>
  • Loading branch information
bryce-mcmath authored Feb 14, 2024
1 parent fd89d3c commit bb5b3ce
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/legacy/core/App/localization/en/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ const translation = {
"DeleteOfferDescription": "Don't recognize the organization? Check your Contacts list. You only receive notifications from Contacts you've initiated",
},
"ProofRequest": {
"JustAMoment": "Just a moment while we prepare things for you...",
"FromYourWallet": "From your wallet",
"MissingCredentials": "Missing credentials",
"PredicateGeDate": "is after",
Expand Down
1 change: 1 addition & 0 deletions packages/legacy/core/App/localization/fr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ const translation = {
"CustomOfferParagraph2": "Vous ne reconnaissez pas l'organisation? Vérifiez votre liste de Contacts. Vous ne recevez des notifications que des Contacts que vous avez initiés."
},
"ProofRequest": {
"JustAMoment": "Just a moment while we prepare things for you... (FR)",
"FromYourWallet": "From your wallet (FR)",
"MissingCredentials": "Missing credentials (FR)",
"PredicateGeDate": "is after (FR)",
Expand Down
1 change: 1 addition & 0 deletions packages/legacy/core/App/localization/pt-br/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ const translation = {
"CustomOfferParagraph2": "Não reconhece a organização. Verifique sua lista de Contatos. Você só recebe notificões de Contatos que você tenha adicionado.",
},
"ProofRequest": {
"JustAMoment": "Just a moment while we prepare things for you... (PT-BR)",
"FromYourWallet": "From your wallet (PB)",
"MissingCredentials": "Missing credentials (PB)",
"PredicateGeDate": "é posterior a",
Expand Down
6 changes: 6 additions & 0 deletions packages/legacy/core/App/screens/ProofRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { CredentialCard } from '../components/misc'
import ConnectionAlert from '../components/misc/ConnectionAlert'
import ConnectionImage from '../components/misc/ConnectionImage'
import CommonRemoveModal from '../components/modals/CommonRemoveModal'
import InfoTextBox from '../components/texts/InfoTextBox'
import { EventTypes } from '../constants'
import { useAnimatedComponents } from '../contexts/animated-components'
import { useConfiguration } from '../contexts/configuration'
Expand Down Expand Up @@ -393,6 +394,11 @@ const ProofRequest: React.FC<ProofRequestProps> = ({ navigation, route }) => {
const proofPageHeader = () => {
return (
<View style={styles.pageMargin}>
{attestationLoading && (
<View style={{ paddingTop: 20 }}>
<InfoTextBox>{t('ProofRequest.JustAMoment')}</InfoTextBox>
</View>
)}
{loading || attestationLoading ? (
<View style={styles.cardLoading}>
<RecordLoading />
Expand Down

0 comments on commit bb5b3ce

Please sign in to comment.