All files / src/screens/authentificationSection/subscription/Views HeaderTexts.tsx

100% Statements 2/2
100% Branches 0/0
100% Functions 1/1
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43                                        1x               1x                            
/**
 * @fileoverview HeaderTexts component
 * @module HeaderTexts
 * @description Component used to display the title and subtitle of the connection screen
 * @requires react react-native
 * @requires StyleSheet from 'react-native'
 * @requires Text from 'react-native'
 * @exports HeaderTexts
 */
 
import React from 'react'
import { StyleSheet, Text } from 'react-native'
import { colors } from '@global/colors'
 
/**
 * @function HeaderTexts
 * @description Component that renders the title and subtitle of the connection screen
 * @returns {React.JSX.Element} HeaderTexts component template
 */
export default function HeaderTexts(): React.JSX.Element {
  return (
    <>
      <Text style={styles.title}>Créer un compte</Text>
      <Text style={styles.subtitle}>Inscrivez-vous pour continuer</Text>
    </>
  )
}
 
const styles = StyleSheet.create({
  title: {
    fontFamily: 'Poppins-SemiBold',
    fontSize: 24,
    fontWeight: '700',
    color: colors.accent,
  },
  subtitle: {
    fontFamily: 'Poppins-Light',
    fontSize: 16,
    fontWeight: '400',
    color: colors.darkGrey,
  },
})