Skip to content

Commit

Permalink
fix page login layout
Browse files Browse the repository at this point in the history
  • Loading branch information
karenyov committed Apr 8, 2023
1 parent b6f0ee3 commit a96c5c0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions src/components/tables/DebtsAllTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,28 @@ export default function DebtsAllTable({ userId }: Props) {
const columns = [
{
name: "Descrição",
selector: (row: any) => row.debtDescription,
selector: (row: DebtDTO) => row.debtDescription,
},
{
name: "Valor",
selector: (row: any) =>
selector: (row: DebtDTO) =>
new Intl.NumberFormat("pt-br", {
style: "currency",
currency: "BRL",
}).format(Number(row.value)),
},
{
name: "Data Vencimento",
selector: (row: any) => new Date(row.dueDate).toLocaleDateString(),
selector: (row: DebtDTO) => new Date(row.dueDate).toLocaleDateString(),
},
{
name: "Data Pagamento",
selector: (row: any) =>
selector: (row: DebtDTO) =>
row.paymentDate ? new Date(row.paymentDate).toLocaleDateString() : "-",
},
{
name: "Status",
selector: (row: any) => (
selector: (row: DebtDTO) => (
<Tag
size="sm"
variant="solid"
Expand Down
10 changes: 5 additions & 5 deletions src/components/tables/HistoryTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,35 +49,35 @@ export default function HistoryTable({ registerId }: Props) {
const columns = [
{
name: "Período",
selector: (row: any) => row.period,
selector: (row: HistoryDTO) => row.period,
},
{
name: "Entradas",
selector: (row: any) =>
selector: (row: HistoryDTO) =>
new Intl.NumberFormat("pt-br", {
style: "currency",
currency: "BRL",
}).format(Number(row.balanceCredit)),
},
{
name: "Débito",
selector: (row: any) =>
selector: (row: HistoryDTO) =>
new Intl.NumberFormat("pt-br", {
style: "currency",
currency: "BRL",
}).format(Number(row.totalDebt)),
},
{
name: "Saldo",
selector: (row: any) =>
selector: (row: HistoryDTO) =>
new Intl.NumberFormat("pt-br", {
style: "currency",
currency: "BRL",
}).format(Number(row.totalCredit)),
},
{
name: "Deletar",
selector: (row: any) =>
selector: (row: HistoryDTO) =>
row.financialHistoryId && (
<IconButton
size="md"
Expand Down
4 changes: 2 additions & 2 deletions src/pages/debt/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export default function Debt() {
{
name: "Status",
width: "180px",
selector: (row: any) => (
selector: (row: DebtDTO) => (
<Tag
size="sm"
variant="solid"
Expand All @@ -251,7 +251,7 @@ export default function Debt() {
},
{
name: "Ações",
selector: (row: any) => (
selector: (row: DebtDTO) => (
<Menu>
<MenuButton
rounded={20}
Expand Down

0 comments on commit a96c5c0

Please sign in to comment.