tableUpdated

This commit is contained in:
2024-06-27 12:07:37 +05:30
parent a3aabc6252
commit 58e799def0
4 changed files with 21 additions and 21 deletions

View File

@@ -60,20 +60,20 @@ const DataTable = ({
<Tbody className="web-text-small">
{ data?.map((item, index) => (
<Tr
// onMouseEnter={(e) => {
// e.currentTarget.style.backgroundColor = "transparent"; // Change the background color on hover
// e.currentTarget.style.transition = "0.1s";
// e.currentTarget.style.boxShadow =
// "rgba(0, 0, 0, 0.24) 0px 1px 8px";
// setMouseEntered(true);
// setMouseEnteredId(item.id);
// }}
// onMouseLeave={(e) => {
// e.currentTarget.style.backgroundColor = "transparent"; // Revert to default background color on hover out
// e.currentTarget.style.transition = "0.3s";
// e.currentTarget.style.boxShadow = "none";
// setMouseEntered(false);
// }}
onMouseEnter={(e) => {
e.currentTarget.style.backgroundColor = "transparent"; // Change the background color on hover
e.currentTarget.style.transition = "0.1s";
e.currentTarget.style.boxShadow =
"rgba(0, 0, 0, 0.24) 0px 1px 8px";
setMouseEntered(true);
setMouseEnteredId(item.id);
}}
onMouseLeave={(e) => {
e.currentTarget.style.backgroundColor = "transparent"; // Revert to default background color on hover out
e.currentTarget.style.transition = "0.3s";
e.currentTarget.style.boxShadow = "none";
setMouseEntered(false);
}}
transition={"0.5s all"}
_hover={{
bg: "green.50",

View File

@@ -117,7 +117,7 @@ const CreateIO = () => {
console.log(errors);
const onSubmit = (data) => {
console.log(data?.targetClose);
console.log(data);
navigate("/view-io");
reset();
};
@@ -205,7 +205,7 @@ const removeOtherImage = (index) => {
isRequired={true}
/>
{/* <FormField
<FormField
label="Year"
control={control}
name="year"
@@ -213,7 +213,7 @@ const removeOtherImage = (index) => {
options={years}
errors={errors}
isRequired={true}
/> */}
/>
<FormField
label="Sponsers Name"

View File

@@ -54,7 +54,7 @@ const InvestorDetails = () => {
// ====================================================[Table Setup]================================================================
const tableHeadRow = [
"Sr N/O",
"IO Name",
"Investor Name",
"Sponsor",
"Investment Amount",
"Action",
@@ -102,7 +102,7 @@ const InvestorDetails = () => {
{item.id}
</Text>
),
"IO Name": (
"Investor Name": (
<Box w={"auto"} isTruncated={true}>
<Text as={"span"} color={"teal.900"}>
{item.InvestorName}
@@ -125,7 +125,7 @@ const InvestorDetails = () => {
// />
<Box w={"auto"} isTruncated={true}>
<Text as={"span"} color={"teal.900"}>
{item.InvestmentAmount}
{item.InvestmentAmount} $
</Text>
</Box>
),

View File

@@ -138,7 +138,7 @@ const EditExchangeRate = ({ id, setIsLoading }) => {
</FormControl>
<FormControl mb={4}>
<FormLabel fontSize={"sm"}>Rate</FormLabel>
<FormLabel fontSize={"sm"}>Exchange rate</FormLabel>
<Input
type="number"
placeholder="Type rate here..."