import useGet from "../Hooks/useGet"; import {Container} from "react-bootstrap"; import {FaCheckCircle} from "react-icons/fa"; import React from "react"; import useApprove from "../Hooks/useApprove"; const UnapprovedBusinessesTable = () => { const { data, isLoading, setData, getData, setChanged } = useGet('/business/unapproved'); const { getData: approveBusiness} = useApprove(); return ( <> {!isLoading && data.map((f, i) => { return })}
Ред. бр. Име на фирма Адреса Даночен број Одговорно лице Одобри
{i + 1} {f.name} {f.address} {f.edbs} {f.user.name + " " + f.user.surname} { approveBusiness('/business/approve/' + f.businessId).then(() => { setChanged((prev) => { return Math.random(); }) }) }}/>
) } export default UnapprovedBusinessesTable;