diff --git a/src/screens/Register/View.js b/src/screens/Register/View.js index 3a88086..be30cb8 100644 --- a/src/screens/Register/View.js +++ b/src/screens/Register/View.js @@ -21,6 +21,7 @@ import LoadingIndicator from '../../components/LoadingIndicator'; import logoImage from '../../assets/if-salas-logo.svg'; import styles from './styles'; +import { createArrayFrom1ToN } from '../../utils/createArrayFrom1ToN'; function View({ isPending, @@ -110,12 +111,9 @@ function View({ label="Ano da turma" onChange={onChangeInput} > - {currentYear} - {currentYear - 1} - {currentYear - 2} - {currentYear - 3} - {currentYear - 4} - {currentYear - 5} + {createArrayFrom1ToN(8).map(i => ( + {currentYear - i} + ))} {/* TODO: Add field mask */}