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
)}
</td>
<td className="py-4 px-6 flex justify-end">
<Dropdown
label={'Opsi'}
floatingArrow={true}
arrowIcon={true}
dismissOnClick={true}
size={'sm'}
>
<td className="py-4 px-6 flex justify-center">
{canUpdate && (
<Dropdown.Item
<div
className="flex space-x-1 items-center hover:underline"
onClick={() =>
toggleFormModal(
level
)
}
>
<div className="flex space-x-1 items-center">
<HiPencil />
<div>
Ubah
</div>
<div>Ubah</div>
</div>
</Dropdown.Item>
)}
</Dropdown>
</td>
</tr>
))}

@ -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 {

@ -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}
</td>
<td className="py-4 px-6 flex justify-center">
<div
className="flex space-x-1 items-center hover:underline"
onClick={() => {
router.get(
route(
<Link
href={route(
'customer-verification.edit',
customer
)
)
}}
)}
className="flex space-x-1 items-center hover:underline"
>
<HiEye />
<div>Lihat</div>
</div>
</Link>
</td>
</tr>
))}

Loading…
Cancel
Save