-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 🐛 Eliminación y agregación de registros a pagar
- Loading branch information
Showing
10 changed files
with
147 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/modules/payments/components/columns/ActionsTablePaymentsToPayView.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { ActionsTable } from "@/modules/core/components"; | ||
import { ItemCopyIdRecord } from "@/modules/core/components/table/actions/ItemCopyIdRecord"; | ||
import { ItemNavigate } from "@/modules/core/components/table/actions/ItemNavigate"; | ||
import { Link } from "lucide-react"; | ||
import { useState } from "react"; | ||
|
||
export const ActionsTablePaymentsToPayView = ({ record }: any) => { | ||
const [openDropDownMenu, setOpenDropDownMenu] = useState(false); | ||
|
||
console.log({ record }); | ||
|
||
return ( | ||
<ActionsTable | ||
setOpenDropDownMenu={setOpenDropDownMenu} | ||
openDropDownMenu={openDropDownMenu} | ||
> | ||
<ItemCopyIdRecord | ||
id={record.id} | ||
setOpenDropDownMenu={setOpenDropDownMenu} | ||
></ItemCopyIdRecord> | ||
<ItemNavigate | ||
path={`/${record.type === "harvest" ? "harvests" : "works"}/view/${ | ||
record.type === "harvest" ? record?.harvest?.id : record?.work?.id | ||
}`} | ||
Icon={Link} | ||
name={"Ver registro"} | ||
/> | ||
</ActionsTable> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.