Skip to content

Commit

Permalink
feat: add utils semanas
Browse files Browse the repository at this point in the history
  • Loading branch information
ialexanderbrito committed Apr 12, 2022
1 parent 2050665 commit fb54223
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/utils/semanas.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export function getDiaSemana(dia: string) {
switch (dia) {
case '0':
return 'Domingo';
case '1':
return 'Segunda-feira';
case '2':
return 'Terça-feira';
case '3':
return 'Quarta-feira';
case '4':
return 'Quinta-feira';
case '5':
return 'Sexta-feira';
case '6':
return 'Sábado';
default:
return '';
}
}

0 comments on commit fb54223

Please sign in to comment.