Skip to content

Commit

Permalink
Merge branch 'main' into chore/ts-coverage-views-1
Browse files Browse the repository at this point in the history
  • Loading branch information
tommasini authored Aug 16, 2024
2 parents e77d333 + c1108ce commit 9e00585
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/components/Views/QRScanner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ const QRScanner = () => {
>
<SafeAreaView style={styles.innerView}>
<TouchableOpacity style={styles.closeIcon} onPress={goBack}>
<Icon name={'ios-close'} size={50} color={styles.closeIcon.color} />
<Icon name="ios-close" size={50} color={styles.closeIcon.color} />
</TouchableOpacity>
<Image source={frameImage} style={styles.frame} />
<Text style={styles.text}>{strings('qr_scanner.scanning')}</Text>
Expand Down
18 changes: 9 additions & 9 deletions app/components/Views/Quiz/SRPQuiz/SRPQuiz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const SRPQuiz = () => {
};

const wrongAnswerIcon = useCallback(
(): Element => (
(): React.ReactElement => (
<Icon
size={IconSize.Xl}
name={IconName.Danger}
Expand All @@ -64,7 +64,7 @@ const SRPQuiz = () => {
);

const rightAnswerIcon = useCallback(
(): Element => (
(): React.ReactElement => (
<Icon
size={IconSize.Xl}
name={IconName.Confirmation}
Expand Down Expand Up @@ -115,14 +115,14 @@ const SRPQuiz = () => {
);
}, [trackEvent]);

const questionOne = useCallback((): Element => {
const questionOne = useCallback((): React.ReactElement => {
trackEvent(MetaMetricsEvents.SRP_REVEAL_FIRST_QUESTION_SEEN, {});
return (
<QuizContent
header={`1 ${strings('srp_security_quiz.of')} 2`}
title={{
content: strings('srp_security_quiz.question_one.question'),
testId: SecurityQuizQuestionOneModalSelectorsText.QUIZ_QUESTION_ONE,
testID: SecurityQuizQuestionOneModalSelectorsText.QUIZ_QUESTION_ONE,
}}
buttons={[
{
Expand Down Expand Up @@ -150,7 +150,7 @@ const SRPQuiz = () => {
);
}, [trackEvent]);

const rightAnswerQuestionOne = useCallback((): Element => {
const rightAnswerQuestionOne = useCallback((): React.ReactElement => {
trackEvent(MetaMetricsEvents.SRP_REVEAL_FIRST_QUESTION_RIGHT_ASNWER, {});
return (
<QuizContent
Expand Down Expand Up @@ -184,7 +184,7 @@ const SRPQuiz = () => {
);
}, [rightAnswerIcon, styles.rightText, trackEvent]);

const wrongAnswerQuestionOne = useCallback((): Element => {
const wrongAnswerQuestionOne = useCallback((): React.ReactElement => {
trackEvent(MetaMetricsEvents.SRP_REVEAL_FIRST_QUESTION_WRONG_ANSWER, {});
return (
<QuizContent
Expand Down Expand Up @@ -218,7 +218,7 @@ const SRPQuiz = () => {
);
}, [styles.wrongText, wrongAnswerIcon, trackEvent]);

const questionTwo = useCallback((): Element => {
const questionTwo = useCallback((): React.ReactElement => {
trackEvent(MetaMetricsEvents.SRP_REVEAL_SECOND_QUESTION_SEEN, {});
return (
<QuizContent
Expand Down Expand Up @@ -252,7 +252,7 @@ const SRPQuiz = () => {
);
}, [trackEvent]);

const rightAnswerQuestionTwo = useCallback((): Element => {
const rightAnswerQuestionTwo = useCallback((): React.ReactElement => {
trackEvent(MetaMetricsEvents.SRP_REVEAL_SECOND_QUESTION_RIGHT_ASNWER, {});
return (
<QuizContent
Expand Down Expand Up @@ -291,7 +291,7 @@ const SRPQuiz = () => {
trackEvent,
]);

const wrongAnswerQuestionTwo = useCallback((): Element => {
const wrongAnswerQuestionTwo = useCallback((): React.ReactElement => {
trackEvent(MetaMetricsEvents.SRP_REVEAL_SECOND_QUESTION_WRONG_ANSWER, {});
return (
<QuizContent
Expand Down
4 changes: 2 additions & 2 deletions app/components/Views/SDK/SDKSessionModal/SDKSessionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import React, { useEffect, useMemo, useRef, useState } from 'react';

// External dependencies
import { ThemeColors } from '@metamask/design-tokens/dist/js/themes/types';
import { ThemeTypography } from '@metamask/design-tokens/dist/js/typography';
import type { ThemeColors } from '@metamask/design-tokens/dist/types/js/themes/types';
import type { ThemeTypography } from '@metamask/design-tokens/dist/types/js/typography';
import { useNavigation } from '@react-navigation/native';
import { StyleSheet, View } from 'react-native';
import { EdgeInsets, useSafeAreaInsets } from 'react-native-safe-area-context';
Expand Down

0 comments on commit 9e00585

Please sign in to comment.