Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: data retention history display #943

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions packages/legacy/core/App/screens/ProofRequestDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import Button, { ButtonType } from '../components/buttons/Button'
import AlertModal from '../components/modals/AlertModal'
import { useConfiguration } from '../contexts/configuration'
import { useStore } from '../contexts/store'
import { useTheme } from '../contexts/theme'
import { useTemplate } from '../hooks/proof-request-templates'
import { Screens, ProofRequestsStackParams } from '../types/navigators'
Expand Down Expand Up @@ -185,6 +186,7 @@

const ProofRequestDetails: React.FC<ProofRequestDetailsProps> = ({ route, navigation }) => {
const { ColorPallet, TextTheme } = useTheme()
const [store] = useStore()
const { t } = useTranslation()
const { i18n } = useTranslation()
const { OCABundleResolver } = useConfiguration()
Expand Down Expand Up @@ -323,15 +325,17 @@
onPress={() => useProofRequest()}
/>
</View>
<View style={style.footerButton}>
<Button
title={t('Verifier.ShowTemplateUsageHistory')}
accessibilityLabel={t('Verifier.ShowTemplateUsageHistory')}
testID={testIdWithKey('ShowTemplateUsageHistory')}
buttonType={ButtonType.Secondary}
onPress={() => showTemplateUsageHistory()}
/>
</View>
{store.preferences.useDataRetention && (
<View style={style.footerButton}>
<Button
title={t('Verifier.ShowTemplateUsageHistory')}
accessibilityLabel={t('Verifier.ShowTemplateUsageHistory')}
testID={testIdWithKey('ShowTemplateUsageHistory')}
buttonType={ButtonType.Secondary}
onPress={() => showTemplateUsageHistory()}

Check warning on line 335 in packages/legacy/core/App/screens/ProofRequestDetails.tsx

View check run for this annotation

Codecov / codecov/patch

packages/legacy/core/App/screens/ProofRequestDetails.tsx#L335

Added line #L335 was not covered by tests
/>
</View>
)}
</View>
)
}
Expand Down