Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(tipo==='ativos' && agendamentosAtivos.length>0)
- return <ScrollView>{agendamentosAtivos}</ScrollView>;
- if(tipo==='cancelados' && agendamentosCancelados.length>0)
- return <ScrollView>{agendamentosCancelados}</ScrollView>;
- if(tipo==='historico' && historico.length>0)
- return <ScrollView>{historico}</ScrollView>;
- return <ScrollView><Text>{tipo === 'historico' ? 'Não há histórico recente': `Não há agendamentos ${tipo}`}</Text></ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement