Reverted to commit 7f3dad4f08
This commit is contained in:
parent
d8cd64c871
commit
e5ea61feee
@ -9,11 +9,11 @@ import StatusTags from './StatusTags';
|
|||||||
|
|
||||||
interface ContaRecorrente {
|
interface ContaRecorrente {
|
||||||
id: string;
|
id: string;
|
||||||
nome_conta: string;
|
nome: string;
|
||||||
valor: number;
|
valor: number;
|
||||||
dia_vencimento: number;
|
dia_vencimento: number;
|
||||||
email_usuario: string;
|
email_usuario: string;
|
||||||
ativo: boolean;
|
ativa: boolean;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,8 +63,8 @@ const ContasRecorrentesList = () => {
|
|||||||
.from('contas_recorrentes')
|
.from('contas_recorrentes')
|
||||||
.select('*')
|
.select('*')
|
||||||
.eq('email_usuario', user.email)
|
.eq('email_usuario', user.email)
|
||||||
.eq('ativo', true)
|
.eq('ativa', true)
|
||||||
.order('nome_conta');
|
.order('nome');
|
||||||
|
|
||||||
if (contasError) {
|
if (contasError) {
|
||||||
console.error('Erro ao buscar contas:', contasError);
|
console.error('Erro ao buscar contas:', contasError);
|
||||||
@ -151,7 +151,7 @@ const ContasRecorrentesList = () => {
|
|||||||
<Card key={conta.id} className="relative">
|
<Card key={conta.id} className="relative">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="flex justify-between items-start">
|
<CardTitle className="flex justify-between items-start">
|
||||||
<span>{conta.nome_conta}</span>
|
<span>{conta.nome}</span>
|
||||||
<Badge variant="outline" className="ml-2">
|
<Badge variant="outline" className="ml-2">
|
||||||
Dia {conta.dia_vencimento}
|
Dia {conta.dia_vencimento}
|
||||||
</Badge>
|
</Badge>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user