Commit 551d7caa authored by Guillermo Sanz López's avatar Guillermo Sanz López
Browse files

all working

parent ea496238
Loading
Loading
Loading
Loading
+1 −29
Original line number Diff line number Diff line
@@ -44,34 +44,6 @@ const Invokers = () => {
    }
  }

  const fetchDataMock = async () => {
    try {
      // Simular la obtención de datos de usuarios
      const eventsList = [
        {
          "name": "SERVICE_API_AVAILABLE",
          "description": "Events related to the availability of service APIs after the service APIs are published.",
          "date": "2023-02-13T10:00:00.000Z"
        },
        {
          "name": "SERVICE_API_UPDATE",
          "description": "Events related to change in service API information.",
          "date": "2023-10-13T10:00:00.000Z"
        },

        // Agrega más usuarios según sea necesario
      ];
  
      console.log(eventsList);
  
      // Actualiza el estado con la lista simulada de usuarios
      setInvokerEvents(eventsList);
      console.log(usersData);
    } catch (error) {
      console.error('Error fetching users:', error);
    }
  };

  const handleDeleteClick = async (invokerId, aef_id, api_id) => {
    try {
      const { data } = await deleteSecurityContext(invokerId, aef_id, api_id)
@@ -84,7 +56,7 @@ const Invokers = () => {

  useEffect(() => {
    fetchData()
  }, [fetchData])
  }, [fetch])

  return (
    <Grid container spacing={6}>