From 1c76943f3e1022d5cf1eded3cb568c33c3c1491b Mon Sep 17 00:00:00 2001 From: Aji Kamaludin Date: Mon, 5 Jun 2023 00:13:16 +0700 Subject: [PATCH] bit fix --- resources/js/Pages/CustomerLevel/Index.jsx | 39 ++++++++------------- resources/js/Pages/DepositHistory/Index.jsx | 9 ++--- resources/js/Pages/Verification/Index.jsx | 20 ++++------- 3 files changed, 24 insertions(+), 44 deletions(-) diff --git a/resources/js/Pages/CustomerLevel/Index.jsx b/resources/js/Pages/CustomerLevel/Index.jsx index 84f5857..c471521 100644 --- a/resources/js/Pages/CustomerLevel/Index.jsx +++ b/resources/js/Pages/CustomerLevel/Index.jsx @@ -98,31 +98,20 @@ export default function Info(props) { level.max_amount )} - - - {canUpdate && ( - - toggleFormModal( - level - ) - } - > -
- -
- Ubah -
-
-
- )} -
+ + {canUpdate && ( +
+ toggleFormModal( + level + ) + } + > + +
Ubah
+
+ )} ))} diff --git a/resources/js/Pages/DepositHistory/Index.jsx b/resources/js/Pages/DepositHistory/Index.jsx index e29552e..bf98321 100644 --- a/resources/js/Pages/DepositHistory/Index.jsx +++ b/resources/js/Pages/DepositHistory/Index.jsx @@ -2,17 +2,14 @@ import React, { useEffect, useState } from 'react' import { router } from '@inertiajs/react' import { usePrevious } from 'react-use' import { Head } from '@inertiajs/react' -import { Button, Dropdown } from 'flowbite-react' -import { HiPencil, HiTrash } from 'react-icons/hi' -import { useModalState } from '@/hooks' +import { HiEye } from 'react-icons/hi2' import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout' import Pagination from '@/Components/Pagination' -import ModalConfirm from '@/Components/ModalConfirm' import FormModal from './FormModal' import SearchInput from '@/Components/SearchInput' -import { formatIDR, hasPermission } from '@/utils' -import { HiEye } from 'react-icons/hi2' +import { hasPermission } from '@/utils' +import { useModalState } from '@/hooks' export default function Index(props) { const { diff --git a/resources/js/Pages/Verification/Index.jsx b/resources/js/Pages/Verification/Index.jsx index 017526c..d094d3b 100644 --- a/resources/js/Pages/Verification/Index.jsx +++ b/resources/js/Pages/Verification/Index.jsx @@ -1,8 +1,7 @@ import React, { useEffect, useState } from 'react' -import { router } from '@inertiajs/react' +import { Link, router } from '@inertiajs/react' import { usePrevious } from 'react-use' import { Head } from '@inertiajs/react' -import { Dropdown } from 'flowbite-react' import { HiEye } from 'react-icons/hi2' import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout' @@ -12,7 +11,6 @@ import SearchInput from '@/Components/SearchInput' export default function Index(props) { const { query: { links, data }, - auth, } = props const [search, setSearch] = useState('') @@ -131,20 +129,16 @@ export default function Index(props) { {customer.referral_code} -
{ - router.get( - route( - 'customer-verification.edit', - customer - ) - ) - }} >
Lihat
-
+ ))}