dev
Aji Kamaludin 1 year ago
parent 4d56b27731
commit 1c76943f3e
No known key found for this signature in database
GPG Key ID: 19058F67F0083AD3

@ -98,31 +98,20 @@ export default function Info(props) {
level.max_amount level.max_amount
)} )}
</td> </td>
<td className="py-4 px-6 flex justify-end"> <td className="py-4 px-6 flex justify-center">
<Dropdown {canUpdate && (
label={'Opsi'} <div
floatingArrow={true} className="flex space-x-1 items-center hover:underline"
arrowIcon={true} onClick={() =>
dismissOnClick={true} toggleFormModal(
size={'sm'} level
> )
{canUpdate && ( }
<Dropdown.Item >
onClick={() => <HiPencil />
toggleFormModal( <div>Ubah</div>
level </div>
) )}
}
>
<div className="flex space-x-1 items-center">
<HiPencil />
<div>
Ubah
</div>
</div>
</Dropdown.Item>
)}
</Dropdown>
</td> </td>
</tr> </tr>
))} ))}

@ -2,17 +2,14 @@ import React, { useEffect, useState } from 'react'
import { router } from '@inertiajs/react' import { router } from '@inertiajs/react'
import { usePrevious } from 'react-use' import { usePrevious } from 'react-use'
import { Head } from '@inertiajs/react' import { Head } from '@inertiajs/react'
import { Button, Dropdown } from 'flowbite-react' import { HiEye } from 'react-icons/hi2'
import { HiPencil, HiTrash } from 'react-icons/hi'
import { useModalState } from '@/hooks'
import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout' import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout'
import Pagination from '@/Components/Pagination' import Pagination from '@/Components/Pagination'
import ModalConfirm from '@/Components/ModalConfirm'
import FormModal from './FormModal' import FormModal from './FormModal'
import SearchInput from '@/Components/SearchInput' import SearchInput from '@/Components/SearchInput'
import { formatIDR, hasPermission } from '@/utils' import { hasPermission } from '@/utils'
import { HiEye } from 'react-icons/hi2' import { useModalState } from '@/hooks'
export default function Index(props) { export default function Index(props) {
const { const {

@ -1,8 +1,7 @@
import React, { useEffect, useState } from 'react' import React, { useEffect, useState } from 'react'
import { router } from '@inertiajs/react' import { Link, router } from '@inertiajs/react'
import { usePrevious } from 'react-use' import { usePrevious } from 'react-use'
import { Head } from '@inertiajs/react' import { Head } from '@inertiajs/react'
import { Dropdown } from 'flowbite-react'
import { HiEye } from 'react-icons/hi2' import { HiEye } from 'react-icons/hi2'
import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout' import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout'
@ -12,7 +11,6 @@ import SearchInput from '@/Components/SearchInput'
export default function Index(props) { export default function Index(props) {
const { const {
query: { links, data }, query: { links, data },
auth,
} = props } = props
const [search, setSearch] = useState('') const [search, setSearch] = useState('')
@ -131,20 +129,16 @@ export default function Index(props) {
{customer.referral_code} {customer.referral_code}
</td> </td>
<td className="py-4 px-6 flex justify-center"> <td className="py-4 px-6 flex justify-center">
<div <Link
href={route(
'customer-verification.edit',
customer
)}
className="flex space-x-1 items-center hover:underline" className="flex space-x-1 items-center hover:underline"
onClick={() => {
router.get(
route(
'customer-verification.edit',
customer
)
)
}}
> >
<HiEye /> <HiEye />
<div>Lihat</div> <div>Lihat</div>
</div> </Link>
</td> </td>
</tr> </tr>
))} ))}

Loading…
Cancel
Save