Skip to content

Commit

Permalink
Rename component and style text as normal
Browse files Browse the repository at this point in the history
  • Loading branch information
tgolen committed Aug 30, 2024
1 parent 411ba53 commit 782e954
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pages/settings/Security/TwoFactorAuth/Steps/GetCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import type {BaseTwoFactorAuthFormOnyxProps, BaseTwoFactorAuthFormRef} from '@pa
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';

type CodesStepProps = BaseTwoFactorAuthFormOnyxProps & BackToParams;
type GetCodeProps = BaseTwoFactorAuthFormOnyxProps & BackToParams;

function CodesStep({account}: CodesStepProps) {
function GetCode({account}: GetCodeProps) {
const styles = useThemeStyles();
const {translate} = useLocalize();

Expand All @@ -34,7 +34,7 @@ function CodesStep({account}: CodesStepProps) {
>
<ScrollView contentContainerStyle={styles.flexGrow1}>
<View style={[styles.ph5, styles.mt3]}>
<Text style={styles.textLabel}>{translate('twoFactorAuth.explainProcessToRemove')}</Text>
<Text>{translate('twoFactorAuth.explainProcessToRemove')}</Text>
</View>
</ScrollView>
<FixedFooter style={[styles.mt2, styles.pt2]}>
Expand Down Expand Up @@ -62,11 +62,11 @@ function CodesStep({account}: CodesStepProps) {
);
}

CodesStep.displayName = 'CodesStep';
GetCode.displayName = 'GetCode';

export default withOnyx<CodesStepProps, BaseTwoFactorAuthFormOnyxProps>({
export default withOnyx<GetCodeProps, BaseTwoFactorAuthFormOnyxProps>({
account: {key: ONYXKEYS.ACCOUNT},
user: {
key: ONYXKEYS.USER,
},
})(CodesStep);
})(GetCode);

0 comments on commit 782e954

Please sign in to comment.