Update tampilan
This commit is contained in:
10
package-lock.json
generated
10
package-lock.json
generated
@ -45,6 +45,7 @@
|
|||||||
"cmdk": "^1.0.4",
|
"cmdk": "^1.0.4",
|
||||||
"date-fns": "^3.0.0",
|
"date-fns": "^3.0.0",
|
||||||
"formik": "^2.4.6",
|
"formik": "^2.4.6",
|
||||||
|
"helmet": "^8.1.0",
|
||||||
"https": "^1.0.0",
|
"https": "^1.0.0",
|
||||||
"leaflet": "^1.9.4",
|
"leaflet": "^1.9.4",
|
||||||
"lucide-react": "^0.456.0",
|
"lucide-react": "^0.456.0",
|
||||||
@ -6055,6 +6056,15 @@
|
|||||||
"node": ">= 0.4"
|
"node": ">= 0.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/helmet": {
|
||||||
|
"version": "8.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/helmet/-/helmet-8.1.0.tgz",
|
||||||
|
"integrity": "sha512-jOiHyAZsmnr8LqoPGmCjYAaiuWwjAPLgY8ZX2XrmHawt99/u1y6RgrZMTeoPfpUbV96HOalYgz1qzkRbw54Pmg==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/hoist-non-react-statics": {
|
"node_modules/hoist-non-react-statics": {
|
||||||
"version": "3.3.2",
|
"version": "3.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",
|
||||||
|
|||||||
@ -51,6 +51,7 @@
|
|||||||
"cmdk": "^1.0.4",
|
"cmdk": "^1.0.4",
|
||||||
"date-fns": "^3.0.0",
|
"date-fns": "^3.0.0",
|
||||||
"formik": "^2.4.6",
|
"formik": "^2.4.6",
|
||||||
|
"helmet": "^8.1.0",
|
||||||
"https": "^1.0.0",
|
"https": "^1.0.0",
|
||||||
"leaflet": "^1.9.4",
|
"leaflet": "^1.9.4",
|
||||||
"lucide-react": "^0.456.0",
|
"lucide-react": "^0.456.0",
|
||||||
|
|||||||
@ -15,7 +15,7 @@ const Footer = () => {
|
|||||||
className="text-gray-600 hover:text-primary"
|
className="text-gray-600 hover:text-primary"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
Brillian Dev.
|
TPAY Dev.
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -2,9 +2,12 @@ import { Container, DataGridInner } from '@/components';
|
|||||||
import { ManageCurrencyContextProvider } from './hooks/ManageCurrencyContext';
|
import { ManageCurrencyContextProvider } from './hooks/ManageCurrencyContext';
|
||||||
import AddDialog from './blocks/AddDialog';
|
import AddDialog from './blocks/AddDialog';
|
||||||
import { Breadcrumbs, Link } from '@mui/material';
|
import { Breadcrumbs, Link } from '@mui/material';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
const ManageCurrency = () => {
|
const ManageCurrency = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet><title>TPAY | Manage Currency</title></Helmet>
|
||||||
<ManageCurrencyContextProvider>
|
<ManageCurrencyContextProvider>
|
||||||
<Container>
|
<Container>
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Currency</h1>
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Currency</h1>
|
||||||
@ -27,6 +30,7 @@ const ManageCurrency = () => {
|
|||||||
<AddDialog />
|
<AddDialog />
|
||||||
</Container>
|
</Container>
|
||||||
</ManageCurrencyContextProvider>
|
</ManageCurrencyContextProvider>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -15,6 +15,7 @@ import { Button } from '@/components/ui/button';
|
|||||||
import { useFetchYear } from './hooks/useFetchYear';
|
import { useFetchYear } from './hooks/useFetchYear';
|
||||||
import { get5LastYear } from '@/utils/Date';
|
import { get5LastYear } from '@/utils/Date';
|
||||||
import { staticChartData } from './staticChart';
|
import { staticChartData } from './staticChart';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
// sum -> nominal, count-> total
|
// sum -> nominal, count-> total
|
||||||
type CountType = 'sum' | 'count';
|
type CountType = 'sum' | 'count';
|
||||||
@ -138,6 +139,10 @@ const DashboardHomePage = () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet>
|
||||||
|
<title>TPAY | Dashboard</title>
|
||||||
|
</Helmet>
|
||||||
<Container>
|
<Container>
|
||||||
<div className="flex gap-3 items-center mb-6">
|
<div className="flex gap-3 items-center mb-6">
|
||||||
<YearPicker selectedYear={selectedYear} setSelectedYear={handleYearChange} />
|
<YearPicker selectedYear={selectedYear} setSelectedYear={handleYearChange} />
|
||||||
@ -196,6 +201,7 @@ const DashboardHomePage = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,7 @@ import { DataTable } from '@/components/ui/DataTable';
|
|||||||
import { columns, Group } from './Column';
|
import { columns, Group } from './Column';
|
||||||
import { apiConfig } from '@/config/api.config';
|
import { apiConfig } from '@/config/api.config';
|
||||||
import axios, { AxiosResponse } from 'axios';
|
import axios, { AxiosResponse } from 'axios';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
import {
|
import {
|
||||||
DialogContent,
|
DialogContent,
|
||||||
MenuItem,
|
MenuItem,
|
||||||
@ -153,8 +154,10 @@ const ManageGroups = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<>
|
||||||
<div className="container mx-auto">
|
<Helmet>
|
||||||
|
<title>TPAY | Manage Group</title>
|
||||||
|
</Helmet>
|
||||||
<ConfirmDialog
|
<ConfirmDialog
|
||||||
open={dialogOpen}
|
open={dialogOpen}
|
||||||
onClose={() => setDialogOpen(false)}
|
onClose={() => setDialogOpen(false)}
|
||||||
@ -166,7 +169,8 @@ const ManageGroups = () => {
|
|||||||
onYes={handleYes}
|
onYes={handleYes}
|
||||||
onNo={() => setDialogOpen(false)}
|
onNo={() => setDialogOpen(false)}
|
||||||
/>
|
/>
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Groups</h1>
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3 grid gap-5 lg:gap-7.5 mx-8 w-auto">Groups</h1>
|
||||||
|
<div className='grid gap-5 lg:gap-7.5 mx-8 w-auto'>
|
||||||
<Breadcrumbs>
|
<Breadcrumbs>
|
||||||
<Link underline="none" color="inherit" href="/">
|
<Link underline="none" color="inherit" href="/">
|
||||||
<span className="text-sm hover:underline">Dashboard</span>
|
<span className="text-sm hover:underline">Dashboard</span>
|
||||||
@ -180,6 +184,8 @@ const ManageGroups = () => {
|
|||||||
<span className="text-sm">Manage Groups</span>
|
<span className="text-sm">Manage Groups</span>
|
||||||
</Link>
|
</Link>
|
||||||
</Breadcrumbs>
|
</Breadcrumbs>
|
||||||
|
</div>
|
||||||
|
<div className="w-full overflow-x-auto px-4">
|
||||||
<DataTable
|
<DataTable
|
||||||
data={dataGroup}
|
data={dataGroup}
|
||||||
columns={columns}
|
columns={columns}
|
||||||
@ -187,6 +193,8 @@ const ManageGroups = () => {
|
|||||||
onUpdate={handleUpdate}
|
onUpdate={handleUpdate}
|
||||||
onDelete={null}
|
onDelete={null}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<Dialog open={isDialogOpen} onClose={closeDialog}>
|
<Dialog open={isDialogOpen} onClose={closeDialog}>
|
||||||
<DialogContent className="w-full">
|
<DialogContent className="w-full">
|
||||||
<div className="flex justify-between">
|
<div className="flex justify-between">
|
||||||
@ -254,8 +262,7 @@ const ManageGroups = () => {
|
|||||||
</div>
|
</div>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</div>
|
</>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -4,9 +4,13 @@ import AddDialog from './blocks/AddDialog';
|
|||||||
import EditDialog from './blocks/EditDialog';
|
import EditDialog from './blocks/EditDialog';
|
||||||
import DeleteDialog from './blocks/DeleteDialog';
|
import DeleteDialog from './blocks/DeleteDialog';
|
||||||
import { Breadcrumbs, Link } from '@mui/material';
|
import { Breadcrumbs, Link } from '@mui/material';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
const AldeiasMaster = () => {
|
const AldeiasMaster = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet>
|
||||||
|
<title>TPAY | Manage Aldeias</title>
|
||||||
|
</Helmet>
|
||||||
<ManageAldeiasContextProvider>
|
<ManageAldeiasContextProvider>
|
||||||
<Container>
|
<Container>
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Aldeias</h1>
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Aldeias</h1>
|
||||||
@ -32,6 +36,7 @@ const AldeiasMaster = () => {
|
|||||||
<DeleteDialog />
|
<DeleteDialog />
|
||||||
</Container>
|
</Container>
|
||||||
</ManageAldeiasContextProvider>
|
</ManageAldeiasContextProvider>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -5,11 +5,13 @@ import AddDialog from './blocks/AddDialog';
|
|||||||
import EditDialog from './blocks/EditDialog';
|
import EditDialog from './blocks/EditDialog';
|
||||||
import { Delete } from 'lucide-react';
|
import { Delete } from 'lucide-react';
|
||||||
import DeleteDialog from './blocks/DeleteDialog';
|
import DeleteDialog from './blocks/DeleteDialog';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
// import EditDialog from './blocks/EditDialog';
|
// import EditDialog from './blocks/EditDialog';
|
||||||
|
|
||||||
const ConversionMaster = () => {
|
const ConversionMaster = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet><title>TPAY | Manage Conversion</title></Helmet>
|
||||||
<ManageConversionContextProvider>
|
<ManageConversionContextProvider>
|
||||||
<Container>
|
<Container>
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-5">Conversion</h1>
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-5">Conversion</h1>
|
||||||
@ -36,6 +38,7 @@ const ConversionMaster = () => {
|
|||||||
<DeleteDialog />
|
<DeleteDialog />
|
||||||
</Container>
|
</Container>
|
||||||
</ManageConversionContextProvider>
|
</ManageConversionContextProvider>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -5,9 +5,14 @@ import SearchDialog from './blocks/SearchDialog';
|
|||||||
import EditDialog from './blocks/EditDialog';
|
import EditDialog from './blocks/EditDialog';
|
||||||
import DeleteDialog from './blocks/DeleteDialog';
|
import DeleteDialog from './blocks/DeleteDialog';
|
||||||
import { Breadcrumbs, Link } from '@mui/material';
|
import { Breadcrumbs, Link } from '@mui/material';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
const Municipios = () => {
|
const Municipios = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet>
|
||||||
|
<title>TPAY | Municipios</title>
|
||||||
|
</Helmet>
|
||||||
<ManageMunicipiosProvider>
|
<ManageMunicipiosProvider>
|
||||||
<Container className="mb-7">
|
<Container className="mb-7">
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">MUNICIPIOS</h1>
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">MUNICIPIOS</h1>
|
||||||
@ -33,6 +38,7 @@ const Municipios = () => {
|
|||||||
<SearchDialog />
|
<SearchDialog />
|
||||||
</Container>
|
</Container>
|
||||||
</ManageMunicipiosProvider>
|
</ManageMunicipiosProvider>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -5,9 +5,14 @@ import SearchDialog from './blocks/SearchDialog';
|
|||||||
import { ManagePostoAdmsContextProvider } from './hooks/ManagePostoAdmsContext';
|
import { ManagePostoAdmsContextProvider } from './hooks/ManagePostoAdmsContext';
|
||||||
import { Container, DataGridInner } from '@/components';
|
import { Container, DataGridInner } from '@/components';
|
||||||
import { Breadcrumbs, Link } from '@mui/material';
|
import { Breadcrumbs, Link } from '@mui/material';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
const PostoAdmsMaster = () => {
|
const PostoAdmsMaster = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet>
|
||||||
|
<title>TPAY | Manage Postu Administrativo</title>
|
||||||
|
</Helmet>
|
||||||
<ManagePostoAdmsContextProvider>
|
<ManagePostoAdmsContextProvider>
|
||||||
<Container>
|
<Container>
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">
|
||||||
@ -35,6 +40,7 @@ const PostoAdmsMaster = () => {
|
|||||||
<SearchDialog />
|
<SearchDialog />
|
||||||
</Container>
|
</Container>
|
||||||
</ManagePostoAdmsContextProvider>
|
</ManagePostoAdmsContextProvider>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -4,9 +4,12 @@ import AddDialog from './blocks/AddDialog';
|
|||||||
import EditDialog from './blocks/EditDialog';
|
import EditDialog from './blocks/EditDialog';
|
||||||
import DeleteDialog from './blocks/DeleteDialog';
|
import DeleteDialog from './blocks/DeleteDialog';
|
||||||
import { Breadcrumbs, Link } from '@mui/material';
|
import { Breadcrumbs, Link } from '@mui/material';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
const ProductsMaster = () => {
|
const ProductsMaster = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet><title>TPAY | Manage Products</title></Helmet>
|
||||||
<ManageProductsContextProvider>
|
<ManageProductsContextProvider>
|
||||||
<Container>
|
<Container>
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Products</h1>
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Products</h1>
|
||||||
@ -31,6 +34,7 @@ const ProductsMaster = () => {
|
|||||||
<DeleteDialog />
|
<DeleteDialog />
|
||||||
</Container>
|
</Container>
|
||||||
</ManageProductsContextProvider>
|
</ManageProductsContextProvider>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -4,9 +4,12 @@ import AddDialog from './blocks/AddDialog';
|
|||||||
import EditDialog from './blocks/EditDialog';
|
import EditDialog from './blocks/EditDialog';
|
||||||
import DeleteDialog from './blocks/DeleteDialog';
|
import DeleteDialog from './blocks/DeleteDialog';
|
||||||
import { Breadcrumbs, Link } from '@mui/material';
|
import { Breadcrumbs, Link } from '@mui/material';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
const ProfessionMaster = () => {
|
const ProfessionMaster = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet><title>TPAY | Manage Profession</title></Helmet>
|
||||||
<ManageProfessionContextProvider>
|
<ManageProfessionContextProvider>
|
||||||
<Container>
|
<Container>
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Profession</h1>
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Profession</h1>
|
||||||
@ -31,6 +34,7 @@ const ProfessionMaster = () => {
|
|||||||
<DeleteDialog />
|
<DeleteDialog />
|
||||||
</Container>
|
</Container>
|
||||||
</ManageProfessionContextProvider>
|
</ManageProfessionContextProvider>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -4,9 +4,12 @@ import AddDialog from './blocks/AddDialog';
|
|||||||
import EditDialog from './blocks/EditDialog';
|
import EditDialog from './blocks/EditDialog';
|
||||||
import DeleteDialog from './blocks/DeleteDialog';
|
import DeleteDialog from './blocks/DeleteDialog';
|
||||||
import { Breadcrumbs, Link } from '@mui/material';
|
import { Breadcrumbs, Link } from '@mui/material';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
const ProviderMaster = () => {
|
const ProviderMaster = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet><title>TPAY | Manage Provider</title></Helmet>
|
||||||
<ManageProviderContextProvider>
|
<ManageProviderContextProvider>
|
||||||
<Container>
|
<Container>
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Provider</h1>
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Provider</h1>
|
||||||
@ -31,6 +34,7 @@ const ProviderMaster = () => {
|
|||||||
<DeleteDialog />
|
<DeleteDialog />
|
||||||
</Container>
|
</Container>
|
||||||
</ManageProviderContextProvider>
|
</ManageProviderContextProvider>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -5,9 +5,14 @@ import EditDialog from './blocks/EditDialog';
|
|||||||
import DeleteDialog from './blocks/DeleteDialog';
|
import DeleteDialog from './blocks/DeleteDialog';
|
||||||
import SearchDialog from './blocks/SearchDialog';
|
import SearchDialog from './blocks/SearchDialog';
|
||||||
import { Breadcrumbs, Link } from '@mui/material';
|
import { Breadcrumbs, Link } from '@mui/material';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
const SucosMaster = () => {
|
const SucosMaster = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet>
|
||||||
|
<title>TPAY | Manage Sucos</title>
|
||||||
|
</Helmet>
|
||||||
<ManageSucosContextProvider>
|
<ManageSucosContextProvider>
|
||||||
<Container>
|
<Container>
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Sucos</h1>
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Sucos</h1>
|
||||||
@ -35,6 +40,7 @@ const SucosMaster = () => {
|
|||||||
<SearchDialog />
|
<SearchDialog />
|
||||||
</Container>
|
</Container>
|
||||||
</ManageSucosContextProvider>
|
</ManageSucosContextProvider>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -3,9 +3,12 @@ import { ManageWalletContextProvider } from './hooks/ManageWalletContext';
|
|||||||
import { Breadcrumbs, Link } from '@mui/material';
|
import { Breadcrumbs, Link } from '@mui/material';
|
||||||
import AddDialog from './blocks/AddDialog';
|
import AddDialog from './blocks/AddDialog';
|
||||||
import EditDialog from './blocks/EditDialog';
|
import EditDialog from './blocks/EditDialog';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
const WalletMaster = () => {
|
const WalletMaster = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet><title>TPAY | Manage Wallet</title></Helmet>
|
||||||
<ManageWalletContextProvider>
|
<ManageWalletContextProvider>
|
||||||
<Container>
|
<Container>
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Wallet</h1>
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Wallet</h1>
|
||||||
@ -29,6 +32,7 @@ const WalletMaster = () => {
|
|||||||
<EditDialog />
|
<EditDialog />
|
||||||
</Container>
|
</Container>
|
||||||
</ManageWalletContextProvider>
|
</ManageWalletContextProvider>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -4,9 +4,12 @@ import { Breadcrumbs, Link } from '@mui/material';
|
|||||||
import AddDialog from './blocks/AddDialog';
|
import AddDialog from './blocks/AddDialog';
|
||||||
import EditDialog from './blocks/EditDialog';
|
import EditDialog from './blocks/EditDialog';
|
||||||
import DeleteDialog from './blocks/DeleteDialog';
|
import DeleteDialog from './blocks/DeleteDialog';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
const WalletRuleMaster = () => {
|
const WalletRuleMaster = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet><title>TPAY | Manage Wallet Rule</title></Helmet>
|
||||||
<ManageWalletRuleContextProvider>
|
<ManageWalletRuleContextProvider>
|
||||||
<Container>
|
<Container>
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-5">Wallet Rule</h1>
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-5">Wallet Rule</h1>
|
||||||
@ -33,6 +36,7 @@ const WalletRuleMaster = () => {
|
|||||||
<DeleteDialog />
|
<DeleteDialog />
|
||||||
</Container>
|
</Container>
|
||||||
</ManageWalletRuleContextProvider>
|
</ManageWalletRuleContextProvider>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -12,6 +12,7 @@ import { toast } from 'sonner';
|
|||||||
const BASE_URL = apiConfig.service_customer;
|
const BASE_URL = apiConfig.service_customer;
|
||||||
import CustomerDialog from '../manage-members/CustomerDetailModal';
|
import CustomerDialog from '../manage-members/CustomerDetailModal';
|
||||||
import { Breadcrumbs, Link } from '@mui/material';
|
import { Breadcrumbs, Link } from '@mui/material';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
export interface IDataGridContextProps<TData extends object> {
|
export interface IDataGridContextProps<TData extends object> {
|
||||||
props: TDataGridProps<TData>;
|
props: TDataGridProps<TData>;
|
||||||
@ -141,6 +142,10 @@ const Kyc = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet>
|
||||||
|
<title>TPAY | KYC</title>
|
||||||
|
</Helmet>
|
||||||
<div>
|
<div>
|
||||||
<div className="container mx-auto w-full">
|
<div className="container mx-auto w-full">
|
||||||
<ConfirmDialog
|
<ConfirmDialog
|
||||||
@ -160,7 +165,8 @@ const Kyc = () => {
|
|||||||
viewStats={true}
|
viewStats={true}
|
||||||
page={'kyc'}
|
page={'kyc'}
|
||||||
/>
|
/>
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Member KYC</h1>
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3 grid gap-5 lg:gap-7.5 mx-8 w-auto">Manage Member KYC</h1>
|
||||||
|
<div className='grid gap-5 lg:gap-7.5 mx-8 w-auto'>
|
||||||
<Breadcrumbs>
|
<Breadcrumbs>
|
||||||
<Link underline="none" color="inherit" href="/">
|
<Link underline="none" color="inherit" href="/">
|
||||||
<span className="text-sm hover:underline">Dashboard</span>
|
<span className="text-sm hover:underline">Dashboard</span>
|
||||||
@ -174,9 +180,21 @@ const Kyc = () => {
|
|||||||
<span className="text-sm">Manage Member KYC</span>
|
<span className="text-sm">Manage Member KYC</span>
|
||||||
</Link>
|
</Link>
|
||||||
</Breadcrumbs>
|
</Breadcrumbs>
|
||||||
<DataTable data={members} columns={columns} onUpdate={handleUpdate} onDelete={null} />
|
</div>
|
||||||
|
<div className="w-full overflow-x-auto px-4">
|
||||||
|
<div className="min-w-[800px]">
|
||||||
|
<DataTable
|
||||||
|
data={members}
|
||||||
|
columns={columns}
|
||||||
|
onUpdate={handleUpdate}
|
||||||
|
onDelete={null}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,7 @@ import { ScreenLoader } from '@/components';
|
|||||||
import { toast } from 'sonner';
|
import { toast } from 'sonner';
|
||||||
import { Breadcrumbs, Link } from '@mui/material';
|
import { Breadcrumbs, Link } from '@mui/material';
|
||||||
const BASE_URL = apiConfig.service_customer;
|
const BASE_URL = apiConfig.service_customer;
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
const ManageMembers = () => {
|
const ManageMembers = () => {
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
@ -115,6 +116,7 @@ const ManageMembers = () => {
|
|||||||
if (loading) return <ScreenLoader />;
|
if (loading) return <ScreenLoader />;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<<<<<<< Updated upstream
|
||||||
<div>
|
<div>
|
||||||
<div className="container mx-auto w-full">
|
<div className="container mx-auto w-full">
|
||||||
<ConfirmDialog
|
<ConfirmDialog
|
||||||
@ -137,6 +139,34 @@ const ManageMembers = () => {
|
|||||||
<Link underline="none" color="inherit" href="/">
|
<Link underline="none" color="inherit" href="/">
|
||||||
<span className="text-sm hover:underline">Dashboard</span>
|
<span className="text-sm hover:underline">Dashboard</span>
|
||||||
</Link>
|
</Link>
|
||||||
|
=======
|
||||||
|
<>
|
||||||
|
<Helmet>
|
||||||
|
<title>TPAY | Manage Members</title>
|
||||||
|
</Helmet>
|
||||||
|
<div>
|
||||||
|
<div className="container mx-auto w-full">
|
||||||
|
<ConfirmDialog
|
||||||
|
open={dialogOpen}
|
||||||
|
onClose={() => setDialogOpen(false)}
|
||||||
|
title="Confirm Action"
|
||||||
|
content={`Are you sure you want to ${dialogType}?`}
|
||||||
|
onYes={handleYes}
|
||||||
|
onNo={() => setDialogOpen(false)}
|
||||||
|
/>
|
||||||
|
<CustomerDialog
|
||||||
|
open={isDialogOpen}
|
||||||
|
handleClose={closeDialog}
|
||||||
|
handleSubmit={handleSubmit}
|
||||||
|
initialData={member}
|
||||||
|
/>
|
||||||
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3 grid gap-5 lg:gap-7.5 mx-8 w-auto">Manage Members</h1>
|
||||||
|
<div className='grid gap-5 lg:gap-7.5 mx-8 w-auto'>
|
||||||
|
<Breadcrumbs>
|
||||||
|
<Link underline="none" color="inherit" href="/">
|
||||||
|
<span className="text-sm hover:underline">Dashboard</span>
|
||||||
|
</Link>
|
||||||
|
>>>>>>> Stashed changes
|
||||||
|
|
||||||
<Link underline="none" color="inherit">
|
<Link underline="none" color="inherit">
|
||||||
<span className="text-sm">Members</span>
|
<span className="text-sm">Members</span>
|
||||||
@ -146,6 +176,9 @@ const ManageMembers = () => {
|
|||||||
<span className="text-sm">Manage Members</span>
|
<span className="text-sm">Manage Members</span>
|
||||||
</Link>
|
</Link>
|
||||||
</Breadcrumbs>
|
</Breadcrumbs>
|
||||||
|
</div>
|
||||||
|
<div className="w-full overflow-x-auto px-4">
|
||||||
|
<div className="min-w-[800px]">
|
||||||
<DataTable
|
<DataTable
|
||||||
data={members}
|
data={members}
|
||||||
createData={createMember}
|
createData={createMember}
|
||||||
@ -155,6 +188,9 @@ const ManageMembers = () => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -4,9 +4,12 @@ import AddDialog from './blocks/AddDIalog';
|
|||||||
import EditDialog from './blocks/EditDialog';
|
import EditDialog from './blocks/EditDialog';
|
||||||
import DeleteDialog from './blocks/DeleteDialog';
|
import DeleteDialog from './blocks/DeleteDialog';
|
||||||
import { Breadcrumbs, Link } from '@mui/material';
|
import { Breadcrumbs, Link } from '@mui/material';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
const ManageMenu = () => {
|
const ManageMenu = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet><title>TPAY | Manage Menu</title></Helmet>
|
||||||
<ManageMenusContextProvider>
|
<ManageMenusContextProvider>
|
||||||
<Container>
|
<Container>
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Menu</h1>
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Menu</h1>
|
||||||
@ -31,6 +34,7 @@ const ManageMenu = () => {
|
|||||||
<DeleteDialog />
|
<DeleteDialog />
|
||||||
</Container>
|
</Container>
|
||||||
</ManageMenusContextProvider>
|
</ManageMenusContextProvider>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -2,9 +2,14 @@ import { Container, DataGridInner } from '@/components';
|
|||||||
import { ManageNotifContextProvider } from './hooks/ManageNotificationContext';
|
import { ManageNotifContextProvider } from './hooks/ManageNotificationContext';
|
||||||
import AddDialog from './blocks/AddDialog';
|
import AddDialog from './blocks/AddDialog';
|
||||||
import { Breadcrumbs, Link } from '@mui/material';
|
import { Breadcrumbs, Link } from '@mui/material';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
const ManageNotification = () => {
|
const ManageNotification = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet>
|
||||||
|
<title>TPAY | Manage Notification</title>
|
||||||
|
</Helmet>
|
||||||
<ManageNotifContextProvider>
|
<ManageNotifContextProvider>
|
||||||
<Container>
|
<Container>
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">
|
||||||
@ -29,6 +34,7 @@ const ManageNotification = () => {
|
|||||||
<AddDialog />
|
<AddDialog />
|
||||||
</Container>
|
</Container>
|
||||||
</ManageNotifContextProvider>
|
</ManageNotifContextProvider>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -4,9 +4,14 @@ import { ManagePositionContextProvider } from './hooks';
|
|||||||
import { AddDialog } from './blocks/AddDialog';
|
import { AddDialog } from './blocks/AddDialog';
|
||||||
import { DeleteDialog } from './blocks/DeleteDialog';
|
import { DeleteDialog } from './blocks/DeleteDialog';
|
||||||
import { Breadcrumbs, Link } from '@mui/material';
|
import { Breadcrumbs, Link } from '@mui/material';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
export default function ManagePositionPage() {
|
export default function ManagePositionPage() {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet>
|
||||||
|
<title>TPAY | Manage Position</title>
|
||||||
|
</Helmet>
|
||||||
<ManagePositionContextProvider>
|
<ManagePositionContextProvider>
|
||||||
<Container>
|
<Container>
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Positions</h1>
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Positions</h1>
|
||||||
@ -35,5 +40,6 @@ export default function ManagePositionPage() {
|
|||||||
<DeleteDialog />
|
<DeleteDialog />
|
||||||
</Container>
|
</Container>
|
||||||
</ManagePositionContextProvider>
|
</ManagePositionContextProvider>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,9 +1,14 @@
|
|||||||
import { Container, DataGridInner } from '@/components';
|
import { Container, DataGridInner } from '@/components';
|
||||||
import { ApprovalTransactionProvider } from './hooks/ApprovalTransactionContext';
|
import { ApprovalTransactionProvider } from './hooks/ApprovalTransactionContext';
|
||||||
import { Breadcrumbs, Link } from '@mui/material';
|
import { Breadcrumbs, Link } from '@mui/material';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
const ApprovalTransaction = () => {
|
const ApprovalTransaction = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet>
|
||||||
|
<title>TPAY | Approval Transaction</title>
|
||||||
|
</Helmet>
|
||||||
<ApprovalTransactionProvider>
|
<ApprovalTransactionProvider>
|
||||||
<Container className="mb-7">
|
<Container className="mb-7">
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-5">TRANSACTION</h1>
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-5">TRANSACTION</h1>
|
||||||
@ -25,6 +30,7 @@ const ApprovalTransaction = () => {
|
|||||||
</div>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
</ApprovalTransactionProvider>
|
</ApprovalTransactionProvider>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,152 @@
|
|||||||
|
import { useTransactionContext } from '../hooks/useApprovalTransactionContext';
|
||||||
|
import { useCallApi } from '@/hooks';
|
||||||
|
import { apiConfig } from '@/config/api.config';
|
||||||
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
||||||
|
import {
|
||||||
|
Dialog,
|
||||||
|
DialogBody,
|
||||||
|
DialogContent,
|
||||||
|
DialogDescription,
|
||||||
|
DialogHeader,
|
||||||
|
DialogTitle
|
||||||
|
} from '@/components/ui/dialog';
|
||||||
|
import { Button } from '@/components/ui/button';
|
||||||
|
import {
|
||||||
|
Select,
|
||||||
|
SelectContent,
|
||||||
|
SelectItem,
|
||||||
|
SelectTrigger,
|
||||||
|
SelectValue
|
||||||
|
} from '@/components/ui/select';
|
||||||
|
import { Alert, KeenIcon, useDataGrid } from '@/components';
|
||||||
|
import { doSaveLogActivity } from '@/actions/GlobalActions';
|
||||||
|
import { toast } from 'sonner';
|
||||||
|
import { Input } from '@/components/ui/input';
|
||||||
|
|
||||||
|
const API_URL = apiConfig.transaction;
|
||||||
|
|
||||||
|
const ApprovalDialog = () => {
|
||||||
|
const { GetData, PostData } = useCallApi();
|
||||||
|
// const { reload } = useDataGrid();
|
||||||
|
const {
|
||||||
|
showApprovalDialog,
|
||||||
|
setShowApprovalDialog,
|
||||||
|
selectedTransactionIdForApproval
|
||||||
|
} = useTransactionContext();
|
||||||
|
|
||||||
|
const [transactionDetails, setTransactionDetails] = useState<any>(null);
|
||||||
|
|
||||||
|
const [formField, setFormField] = useState({
|
||||||
|
transaction_code: '',
|
||||||
|
status: ''
|
||||||
|
});
|
||||||
|
|
||||||
|
const [alert, setAlert] = useState({
|
||||||
|
show: false,
|
||||||
|
message: ''
|
||||||
|
});
|
||||||
|
|
||||||
|
const doApproval = useCallback(
|
||||||
|
async (e: React.FormEvent<HTMLFormElement>) => {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
if (!transactionDetails || !transactionDetails.code) {
|
||||||
|
toast.error('Transaction data not loaded yet.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!formField.status) {
|
||||||
|
toast.error('Please select a status.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const response = await PostData(`${API_URL}/transaction/set-approval`, {
|
||||||
|
transaction_code: transactionDetails.code,
|
||||||
|
status: formField.status,
|
||||||
|
});
|
||||||
|
|
||||||
|
if (response?.status) {
|
||||||
|
setAlert((prev) => ({ ...prev, show: false, message: '' }));
|
||||||
|
toast.success('Success Update Position');
|
||||||
|
const createActivity = {
|
||||||
|
module: 'Approval Transaction',
|
||||||
|
description: `Change status approve for transaction => ${transactionDetails.code}`,
|
||||||
|
action: 'U'
|
||||||
|
};
|
||||||
|
doSaveLogActivity(createActivity);
|
||||||
|
setShowApprovalDialog(false); // optionally close dialog
|
||||||
|
} else {
|
||||||
|
setAlert((prev) => ({ ...prev, show: true, message: response?.message }));
|
||||||
|
}
|
||||||
|
},
|
||||||
|
[formField, transactionDetails]
|
||||||
|
);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const fetchTransactionDetails = async () => {
|
||||||
|
if (selectedTransactionIdForApproval) {
|
||||||
|
try {
|
||||||
|
const response = await GetData(`${API_URL}/transaction/history/detail/${selectedTransactionIdForApproval}`, {
|
||||||
|
id: selectedTransactionIdForApproval
|
||||||
|
});
|
||||||
|
// console.log(response?.data.code);
|
||||||
|
// console.log(selectedTransactionIdForApproval);
|
||||||
|
setTransactionDetails(response?.data);
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error fetching transaction', error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if (showApprovalDialog && selectedTransactionIdForApproval) {
|
||||||
|
fetchTransactionDetails();
|
||||||
|
}
|
||||||
|
}, [showApprovalDialog, selectedTransactionIdForApproval, GetData]);
|
||||||
|
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Dialog open={showApprovalDialog} onOpenChange={setShowApprovalDialog}>
|
||||||
|
<DialogContent className="container-fixed max-w-[1024px] flex flex-col p-5 overflow-hidden">
|
||||||
|
<DialogHeader>
|
||||||
|
<DialogTitle>Approval Transaction</DialogTitle>
|
||||||
|
</DialogHeader>
|
||||||
|
<DialogBody>
|
||||||
|
<form action="" onSubmit={doApproval}>
|
||||||
|
<div className="card-body grid gap-5 p-0">
|
||||||
|
<div className="w-full">
|
||||||
|
<div className="flex items-center flex-wrap gap-2.5">
|
||||||
|
<label className="form-label max-w-56">Status</label>
|
||||||
|
|
||||||
|
<div className="grow">
|
||||||
|
<Select
|
||||||
|
value={formField.status}
|
||||||
|
onValueChange={(status) => setFormField((prev) => ({ ...prev, status }))}
|
||||||
|
>
|
||||||
|
<SelectTrigger>
|
||||||
|
<SelectValue placeholder="Select" />
|
||||||
|
</SelectTrigger>
|
||||||
|
<SelectContent>
|
||||||
|
<SelectItem value="Y">APPROVE</SelectItem>
|
||||||
|
<SelectItem value="N">REJECTED</SelectItem>
|
||||||
|
</SelectContent>
|
||||||
|
</Select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
<div className="flex justify-end">
|
||||||
|
<Button className="btn btn-primary" type="submit">
|
||||||
|
Save Changes
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</DialogBody>
|
||||||
|
</DialogContent>
|
||||||
|
</Dialog>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default ApprovalDialog;
|
||||||
@ -1,14 +1,18 @@
|
|||||||
|
import React, { createContext, useMemo, useState } from 'react';
|
||||||
|
import { useNavigate } from 'react-router-dom'; // FIXED HERE
|
||||||
|
import { ColumnDef } from '@tanstack/react-table';
|
||||||
|
import axios from 'axios';
|
||||||
|
|
||||||
import { DataGridColumnHeader, DataGridProvider, KeenIcon } from '@/components';
|
import { DataGridColumnHeader, DataGridProvider, KeenIcon } from '@/components';
|
||||||
import { Toaster } from '@/components/ui/sonner';
|
import { Toaster } from '@/components/ui/sonner';
|
||||||
import { apiConfig } from '@/config/api.config';
|
import { apiConfig } from '@/config/api.config';
|
||||||
import { ColumnDef } from '@tanstack/react-table';
|
|
||||||
import axios from 'axios';
|
|
||||||
import React, { createContext, useCallback, useEffect, useMemo, useState } from 'react';
|
|
||||||
import { useCallApi } from '@/hooks';
|
import { useCallApi } from '@/hooks';
|
||||||
|
|
||||||
import ListToolbar from '../blocks/ListToolbar';
|
import ListToolbar from '../blocks/ListToolbar';
|
||||||
import { Button } from '@/components/ui/button';
|
|
||||||
import { useNavigate } from 'react-router';
|
|
||||||
import DetailApprovalTransaction from '../blocks/DetailApprovalTransaction';
|
import DetailApprovalTransaction from '../blocks/DetailApprovalTransaction';
|
||||||
|
import ApprovalDialog from '../blocks/ApprovalDialog';
|
||||||
|
|
||||||
|
import { Button } from '@/components/ui/button';
|
||||||
|
|
||||||
interface ApprovalTransactionProps {
|
interface ApprovalTransactionProps {
|
||||||
id: number;
|
id: number;
|
||||||
@ -17,25 +21,31 @@ interface ApprovalTransactionProps {
|
|||||||
|
|
||||||
interface ContextProps {
|
interface ContextProps {
|
||||||
getTransactionLists: (
|
getTransactionLists: (
|
||||||
limit: number,
|
|
||||||
page: number,
|
page: number,
|
||||||
with_deleted: boolean,
|
limit: number,
|
||||||
order_field: any,
|
sorting: any,
|
||||||
order_direction: any,
|
|
||||||
filter: any
|
filter: any
|
||||||
) => Promise<{ data: ApprovalTransactionProps[]; totalCount: number } | undefined>;
|
) => Promise<{ data: ApprovalTransactionProps[]; totalCount: number } | undefined>;
|
||||||
showDetailDialog: boolean;
|
showDetailDialog: boolean;
|
||||||
setShowDetailDialog: React.Dispatch<React.SetStateAction<boolean>>;
|
setShowDetailDialog: React.Dispatch<React.SetStateAction<boolean>>;
|
||||||
|
showApprovalDialog: boolean;
|
||||||
|
setShowApprovalDialog: React.Dispatch<React.SetStateAction<boolean>>;
|
||||||
selectedTransactionId: number | null;
|
selectedTransactionId: number | null;
|
||||||
setSelectedTransactionId: React.Dispatch<React.SetStateAction<number | null>>;
|
setSelectedTransactionId: React.Dispatch<React.SetStateAction<number | null>>;
|
||||||
|
selectedTransactionIdForApproval: number | null;
|
||||||
|
setSelectedTransactionIdForApproval: React.Dispatch<React.SetStateAction<number | null>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
const initialProps: ContextProps = {
|
const initialProps: ContextProps = {
|
||||||
getTransactionLists: async () => ({ data: [], totalCount: 0 }),
|
getTransactionLists: async () => ({ data: [], totalCount: 0 }),
|
||||||
showDetailDialog: false,
|
showDetailDialog: false,
|
||||||
setShowDetailDialog: () => { },
|
setShowDetailDialog: () => { },
|
||||||
|
showApprovalDialog: false,
|
||||||
|
setShowApprovalDialog: () => { },
|
||||||
selectedTransactionId: null,
|
selectedTransactionId: null,
|
||||||
setSelectedTransactionId: () => { }
|
setSelectedTransactionId: () => { },
|
||||||
|
selectedTransactionIdForApproval: null,
|
||||||
|
setSelectedTransactionIdForApproval: () => { },
|
||||||
};
|
};
|
||||||
|
|
||||||
const ManageApprovalTransactionContext = createContext<ContextProps>(initialProps);
|
const ManageApprovalTransactionContext = createContext<ContextProps>(initialProps);
|
||||||
@ -43,47 +53,36 @@ const API_URL = apiConfig.transaction;
|
|||||||
|
|
||||||
const ApprovalTransactionProvider = ({ children }: { children: React.ReactNode }) => {
|
const ApprovalTransactionProvider = ({ children }: { children: React.ReactNode }) => {
|
||||||
const [showDetailDialog, setShowDetailDialog] = useState(false);
|
const [showDetailDialog, setShowDetailDialog] = useState(false);
|
||||||
|
const [showApprovalDialog, setShowApprovalDialog] = useState(false);
|
||||||
const [selectedTransactionId, setSelectedTransactionId] = useState<number | null>(null);
|
const [selectedTransactionId, setSelectedTransactionId] = useState<number | null>(null);
|
||||||
|
const [selectedTransactionIdForApproval, setSelectedTransactionIdForApproval] = useState<number | null>(null);
|
||||||
const [transaction, setTransaction] = useState<ApprovalTransactionProps[]>([]);
|
const [transaction, setTransaction] = useState<ApprovalTransactionProps[]>([]);
|
||||||
|
|
||||||
const { GetData } = useCallApi();
|
const { GetData } = useCallApi();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const handleNavigate = (path: string) => {
|
|
||||||
const url = navigate(`${API_URL}/transaction/history/${path}`);
|
|
||||||
};
|
|
||||||
|
|
||||||
const columns = useMemo<ColumnDef<any>[]>(
|
const columns = useMemo<ColumnDef<any>[]>(
|
||||||
() => [
|
() => [
|
||||||
// {
|
|
||||||
// accessorKey: 'transaction_date',
|
|
||||||
// header: ({ column }) => <DataGridColumnHeader title="Transaction Date" column={column} />,
|
|
||||||
// enableSorting: false,
|
|
||||||
// enableHiding: false,
|
|
||||||
// meta: {
|
|
||||||
// headerClassName: 'w-[250px]'
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
accessorKey: 'transaction_date',
|
accessorKey: 'transaction_date',
|
||||||
header: ({ column }) => <DataGridColumnHeader title="Transaction Date" column={column} />,
|
header: ({ column }) => <DataGridColumnHeader title="Transaction Date" column={column} />,
|
||||||
enableSorting: false,
|
enableSorting: false,
|
||||||
enableHiding: false,
|
enableHiding: false,
|
||||||
meta: {
|
meta: {
|
||||||
headerClassName: 'w-[250px]'
|
headerClassName: 'w-[250px]',
|
||||||
},
|
},
|
||||||
cell: ({ row }) => {
|
cell: ({ row }) => {
|
||||||
// Memformat tanggal dan waktu dari ISO ke format biasa (DD-MM-YYYY HH:MM:SS)
|
|
||||||
const transactionDate = new Date(row.original.transaction_date);
|
const transactionDate = new Date(row.original.transaction_date);
|
||||||
const formattedDateTime = transactionDate.toLocaleString('en-GB', {
|
return transactionDate.toLocaleString('en-GB', {
|
||||||
day: '2-digit',
|
day: '2-digit',
|
||||||
month: '2-digit',
|
month: '2-digit',
|
||||||
year: 'numeric',
|
year: 'numeric',
|
||||||
hour: '2-digit',
|
hour: '2-digit',
|
||||||
minute: '2-digit',
|
minute: '2-digit',
|
||||||
second: '2-digit',
|
second: '2-digit',
|
||||||
hour12: false // Gunakan format 24 jam
|
hour12: false,
|
||||||
});
|
});
|
||||||
return formattedDateTime; // Format DD-MM-YYYY HH:MM:SS (menggunakan waktu yang sudah ada)
|
},
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: 'origin_customer.fullname',
|
accessorKey: 'origin_customer.fullname',
|
||||||
@ -91,15 +90,17 @@ const ApprovalTransactionProvider = ({ children }: { children: React.ReactNode }
|
|||||||
enableSorting: false,
|
enableSorting: false,
|
||||||
enableHiding: false,
|
enableHiding: false,
|
||||||
meta: {
|
meta: {
|
||||||
headerClassName: 'w-[250px]'
|
headerClassName: 'w-[250px]',
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorFn: (row) => {
|
accessorFn: (row) => {
|
||||||
const purchaseAmount = row?.purchase?.amount;
|
const purchaseAmount = row?.purchase?.amount;
|
||||||
const transferAmount = row?.transfer?.amount;
|
const transferAmount = row?.transfer?.amount;
|
||||||
|
return new Intl.NumberFormat('en-US', {
|
||||||
return new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }).format(purchaseAmount ?? transferAmount ?? 0);
|
style: 'currency',
|
||||||
|
currency: 'USD',
|
||||||
|
}).format(purchaseAmount ?? transferAmount ?? 0);
|
||||||
},
|
},
|
||||||
id: 'amount',
|
id: 'amount',
|
||||||
header: ({ column }) => <DataGridColumnHeader title="Amount" column={column} />,
|
header: ({ column }) => <DataGridColumnHeader title="Amount" column={column} />,
|
||||||
@ -111,10 +112,12 @@ const ApprovalTransactionProvider = ({ children }: { children: React.ReactNode }
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorFn: (row) => {
|
accessorFn: (row) => {
|
||||||
const purchaseAmount = row?.purchase?.fee_amount;
|
const purchaseFee = row?.purchase?.fee_amount;
|
||||||
const transferAmount = row?.transfer?.fee_amount;
|
const transferFee = row?.transfer?.fee_amount;
|
||||||
|
return new Intl.NumberFormat('en-US', {
|
||||||
return new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }).format(purchaseAmount ?? transferAmount ?? 0);
|
style: 'currency',
|
||||||
|
currency: 'USD',
|
||||||
|
}).format(purchaseFee ?? transferFee ?? 0);
|
||||||
},
|
},
|
||||||
id: 'feeamount',
|
id: 'feeamount',
|
||||||
header: ({ column }) => <DataGridColumnHeader title="Fee Amount" column={column} />,
|
header: ({ column }) => <DataGridColumnHeader title="Fee Amount" column={column} />,
|
||||||
@ -126,19 +129,14 @@ const ApprovalTransactionProvider = ({ children }: { children: React.ReactNode }
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorFn: (row) => {
|
accessorFn: (row) => {
|
||||||
let status;
|
switch (row.status) {
|
||||||
if (row.status === 'C') {
|
case 'C': return 'COMPLETE';
|
||||||
status = 'COMPLETE';
|
case 'F': return 'FAILED';
|
||||||
} else if (row.status === 'F') {
|
case 'O': return 'ON PROCESS';
|
||||||
status = 'FAILED';
|
default: return 'PENDING';
|
||||||
} else if (row.status === 'O') {
|
|
||||||
status = 'ON PROCESS';
|
|
||||||
} else {
|
|
||||||
status = 'PENDING';
|
|
||||||
}
|
}
|
||||||
return status;
|
|
||||||
},
|
},
|
||||||
accessorKey: 'status',
|
id: 'status',
|
||||||
header: ({ column }) => <DataGridColumnHeader title="Status" column={column} />,
|
header: ({ column }) => <DataGridColumnHeader title="Status" column={column} />,
|
||||||
enableSorting: false,
|
enableSorting: false,
|
||||||
enableHiding: false,
|
enableHiding: false,
|
||||||
@ -152,8 +150,8 @@ const ApprovalTransactionProvider = ({ children }: { children: React.ReactNode }
|
|||||||
enableSorting: false,
|
enableSorting: false,
|
||||||
enableHiding: false,
|
enableHiding: false,
|
||||||
meta: {
|
meta: {
|
||||||
headerClassName: 'w-[250px]'
|
headerClassName: 'w-[250px]',
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: 'type.name',
|
accessorKey: 'type.name',
|
||||||
@ -161,9 +159,26 @@ const ApprovalTransactionProvider = ({ children }: { children: React.ReactNode }
|
|||||||
enableSorting: false,
|
enableSorting: false,
|
||||||
enableHiding: false,
|
enableHiding: false,
|
||||||
meta: {
|
meta: {
|
||||||
headerClassName: 'w-[250px]'
|
headerClassName: 'w-[250px]',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
accessorFn: (row) => {
|
||||||
|
switch (row.status_approve) {
|
||||||
|
case 'W': return 'WAITING APPROVAL';
|
||||||
|
case 'Y': return 'APPROVED';
|
||||||
|
case 'N': return 'REJECTED';
|
||||||
|
default: return 'PENDING';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
id: 'status_approve',
|
||||||
|
header: ({ column }) => <DataGridColumnHeader title="Status" column={column} />,
|
||||||
|
enableSorting: false,
|
||||||
|
enableHiding: false,
|
||||||
|
meta: {
|
||||||
|
headerClassName: 'w-[250px]',
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'actions',
|
id: 'actions',
|
||||||
header: ({ column }) => <DataGridColumnHeader title="Actions" column={column} />,
|
header: ({ column }) => <DataGridColumnHeader title="Actions" column={column} />,
|
||||||
@ -172,7 +187,7 @@ const ApprovalTransactionProvider = ({ children }: { children: React.ReactNode }
|
|||||||
cell: (data) => {
|
cell: (data) => {
|
||||||
const row = data.row.original;
|
const row = data.row.original;
|
||||||
return (
|
return (
|
||||||
<div key={`actions-${row.id}`}>
|
<div key={`actions-${row.id}`} className="flex gap-2 justify-center">
|
||||||
<button
|
<button
|
||||||
className="btn btn-sm btn-icon btn-clear btn-light"
|
className="btn btn-sm btn-icon btn-clear btn-light"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@ -182,40 +197,48 @@ const ApprovalTransactionProvider = ({ children }: { children: React.ReactNode }
|
|||||||
>
|
>
|
||||||
<KeenIcon icon="eye" />
|
<KeenIcon icon="eye" />
|
||||||
</button>
|
</button>
|
||||||
|
<button
|
||||||
|
className="btn btn-sm btn-icon btn-clear btn-light"
|
||||||
|
onClick={() => {
|
||||||
|
setSelectedTransactionIdForApproval(row.id);
|
||||||
|
setShowApprovalDialog(true);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<KeenIcon icon="notepad-edit" />
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
meta: {
|
meta: {
|
||||||
headerClassName: 'w-[100px]',
|
headerClassName: 'w-[100px]',
|
||||||
cellClassName: 'text-center'
|
cellClassName: 'text-center',
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
[]);
|
[]
|
||||||
|
);
|
||||||
|
|
||||||
const getTransactionLists = async (page: number, limit: number, sorting: any, filter: any) => {
|
const getTransactionLists = async (page: number, limit: number, sorting: any, filter: any) => {
|
||||||
try {
|
try {
|
||||||
let startdate;
|
let startdate, enddate;
|
||||||
let enddate;
|
|
||||||
let formattedFilter;
|
|
||||||
|
|
||||||
if (filter == undefined || filter.length == 0) {
|
if (!filter || filter.length === 0) {
|
||||||
const today = new Date();
|
const today = new Date();
|
||||||
const nextWeek = new Date();
|
const nextWeek = new Date();
|
||||||
nextWeek.setDate(today.getDate() + 7);
|
nextWeek.setDate(today.getDate() + 7);
|
||||||
|
|
||||||
startdate = today.toISOString().split('T')[0];
|
startdate = today.toISOString().split('T')[0];
|
||||||
enddate = nextWeek.toISOString().split('T')[0];
|
enddate = nextWeek.toISOString().split('T')[0];
|
||||||
} else if (filter != undefined || filter.length != 0) {
|
} else {
|
||||||
startdate = filter[0].value.from;
|
startdate = filter[0]?.value?.from;
|
||||||
enddate = filter[0].value.to;
|
enddate = filter[0]?.value?.to;
|
||||||
}
|
}
|
||||||
|
|
||||||
formattedFilter = {
|
const formattedFilter = {
|
||||||
"Transactions.transaction_date": {
|
"Transactions.transaction_date": {
|
||||||
from: startdate + " 00:00:00",
|
from: `${startdate} 00:00:00`,
|
||||||
to: enddate + " 23:59:59"
|
to: `${enddate} 23:59:59`,
|
||||||
}
|
},
|
||||||
|
"Transactions.status_approve": { in: ["W", "Y", "N"] },
|
||||||
};
|
};
|
||||||
|
|
||||||
const response = await GetData(`${API_URL}/transaction/history`, {
|
const response = await GetData(`${API_URL}/transaction/history`, {
|
||||||
@ -224,11 +247,14 @@ const ApprovalTransactionProvider = ({ children }: { children: React.ReactNode }
|
|||||||
with_deleted: false,
|
with_deleted: false,
|
||||||
order_field: "Transactions.created_at",
|
order_field: "Transactions.created_at",
|
||||||
order_direction: 'DESC',
|
order_direction: 'DESC',
|
||||||
filter: JSON.stringify(formattedFilter)
|
filter: JSON.stringify(formattedFilter),
|
||||||
});
|
});
|
||||||
|
|
||||||
setTransaction(response?.data.list);
|
setTransaction(response?.data?.list || []);
|
||||||
return { data: response?.data.list, totalCount: response?.data.total_count };
|
return {
|
||||||
|
data: response?.data?.list || [],
|
||||||
|
totalCount: response?.data?.total_count || 0,
|
||||||
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error fetching transaction', error);
|
console.error('Error fetching transaction', error);
|
||||||
}
|
}
|
||||||
@ -240,12 +266,17 @@ const ApprovalTransactionProvider = ({ children }: { children: React.ReactNode }
|
|||||||
getTransactionLists,
|
getTransactionLists,
|
||||||
showDetailDialog,
|
showDetailDialog,
|
||||||
setShowDetailDialog,
|
setShowDetailDialog,
|
||||||
|
showApprovalDialog,
|
||||||
|
setShowApprovalDialog,
|
||||||
selectedTransactionId,
|
selectedTransactionId,
|
||||||
setSelectedTransactionId
|
setSelectedTransactionId,
|
||||||
|
selectedTransactionIdForApproval,
|
||||||
|
setSelectedTransactionIdForApproval,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Toaster expand visibleToasts={9} duration={3000} />
|
<Toaster expand visibleToasts={9} duration={3000} />
|
||||||
<DetailApprovalTransaction />
|
<DetailApprovalTransaction />
|
||||||
|
<ApprovalDialog />
|
||||||
|
|
||||||
<DataGridProvider
|
<DataGridProvider
|
||||||
columns={columns}
|
columns={columns}
|
||||||
|
|||||||
@ -1,9 +1,14 @@
|
|||||||
import { Container, DataGridInner } from '@/components';
|
import { Container, DataGridInner } from '@/components';
|
||||||
import { TransactionProvider } from './hooks/TransactionContext';
|
import { TransactionProvider } from './hooks/TransactionContext';
|
||||||
import { Breadcrumbs, Link } from '@mui/material';
|
import { Breadcrumbs, Link } from '@mui/material';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
const Transaction = () => {
|
const Transaction = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet>
|
||||||
|
<title>TPAY | History Transaction</title>
|
||||||
|
</Helmet>
|
||||||
<TransactionProvider>
|
<TransactionProvider>
|
||||||
<Container className="mb-7">
|
<Container className="mb-7">
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-5">TRANSACTION</h1>
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-5">TRANSACTION</h1>
|
||||||
@ -25,6 +30,7 @@ const Transaction = () => {
|
|||||||
</div>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
</TransactionProvider>
|
</TransactionProvider>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -227,7 +227,7 @@ const DetailTransaction = () => {
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p className="text-sm text-gray-500">Price Point</p>
|
<p className="text-sm text-gray-500">Price Point</p>
|
||||||
{new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }).format(transactionDetails?.purchase.product.price_point)}
|
<p className="font-medium">{transactionDetails?.purchase.product.price_point}</p>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p className="text-sm text-gray-500">Product Type</p>
|
<p className="text-sm text-gray-500">Product Type</p>
|
||||||
@ -239,7 +239,17 @@ const DetailTransaction = () => {
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p className="text-sm text-gray-500">Provider Type</p>
|
<p className="text-sm text-gray-500">Provider Type</p>
|
||||||
<p className="font-medium">{transactionDetails?.purchase.product.provider.type}</p>
|
<p className="font-medium">
|
||||||
|
{(() => {
|
||||||
|
let providertype;
|
||||||
|
if (transactionDetails?.purchase.product.provider.type === 'h2h') {
|
||||||
|
providertype = 'HOST TO HOST';
|
||||||
|
} else if (transactionDetails?.purchase.product.provider.type === 'agent') {
|
||||||
|
providertype = 'AGENT';
|
||||||
|
}
|
||||||
|
return providertype;
|
||||||
|
})()}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -7,10 +7,15 @@ import AddDialog from './blocks/AddDialog';
|
|||||||
import { Breadcrumbs, Link } from '@mui/material';
|
import { Breadcrumbs, Link } from '@mui/material';
|
||||||
import { DeleteDialog } from './blocks/DeleteDialog';
|
import { DeleteDialog } from './blocks/DeleteDialog';
|
||||||
import { EditDialog } from './blocks/EditDialog';
|
import { EditDialog } from './blocks/EditDialog';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
const TransferType = () => {
|
const TransferType = () => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet>
|
||||||
|
<title>TPAY | Manage Transaction Type</title>
|
||||||
|
</Helmet>
|
||||||
<ManageTransferTypeContextProvider>
|
<ManageTransferTypeContextProvider>
|
||||||
<Container>
|
<Container>
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Transaction Type</h1>
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Transaction Type</h1>
|
||||||
@ -36,6 +41,7 @@ const TransferType = () => {
|
|||||||
|
|
||||||
</Container>
|
</Container>
|
||||||
</ManageTransferTypeContextProvider>
|
</ManageTransferTypeContextProvider>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,14 @@
|
|||||||
import { Container, DataGridInner } from '@/components';
|
import { Container, DataGridInner } from '@/components';
|
||||||
import { ManageWalletContextProvider } from './hooks/ManageWalletHistoryContext';
|
import { ManageWalletContextProvider } from './hooks/ManageWalletHistoryContext';
|
||||||
import { Breadcrumbs, Link } from '@mui/material';
|
import { Breadcrumbs, Link } from '@mui/material';
|
||||||
|
import { Helmet } from 'react-helmet';
|
||||||
|
|
||||||
const WalletHistory = () => {
|
const WalletHistory = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet>
|
||||||
|
<title>TPAY | Wallet History</title>
|
||||||
|
</Helmet>
|
||||||
<ManageWalletContextProvider>
|
<ManageWalletContextProvider>
|
||||||
<Container>
|
<Container>
|
||||||
<h1 className="text-xl font-medium leading-none text-gray-900 mb-5">Wallet History</h1>
|
<h1 className="text-xl font-medium leading-none text-gray-900 mb-5">Wallet History</h1>
|
||||||
@ -26,6 +31,7 @@ const WalletHistory = () => {
|
|||||||
</div>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
</ManageWalletContextProvider>
|
</ManageWalletContextProvider>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -2762,6 +2762,11 @@ hasown@^2.0.0, hasown@^2.0.2:
|
|||||||
dependencies:
|
dependencies:
|
||||||
function-bind "^1.1.2"
|
function-bind "^1.1.2"
|
||||||
|
|
||||||
|
helmet@^8.1.0:
|
||||||
|
version "8.1.0"
|
||||||
|
resolved "https://registry.npmjs.org/helmet/-/helmet-8.1.0.tgz"
|
||||||
|
integrity sha512-jOiHyAZsmnr8LqoPGmCjYAaiuWwjAPLgY8ZX2XrmHawt99/u1y6RgrZMTeoPfpUbV96HOalYgz1qzkRbw54Pmg==
|
||||||
|
|
||||||
hoist-non-react-statics@^3.3.0, hoist-non-react-statics@^3.3.1, hoist-non-react-statics@3:
|
hoist-non-react-statics@^3.3.0, hoist-non-react-statics@^3.3.1, hoist-non-react-statics@3:
|
||||||
version "3.3.2"
|
version "3.3.2"
|
||||||
resolved "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz"
|
resolved "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz"
|
||||||
|
|||||||
Reference in New Issue
Block a user