Fix jwt-token
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import React, { useState, useEffect, useContext } from 'react';
|
||||
import { AuthContext } from '../contexts/AuthContext';
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { useAuth } from '../contexts/AuthContext';
|
||||
import { formatDistanceToNow } from 'date-fns';
|
||||
|
||||
const SecurityLogs = () => {
|
||||
const { user, tenant } = useContext(AuthContext);
|
||||
const { user, tenant } = useAuth();
|
||||
const [logs, setLogs] = useState([]);
|
||||
const [loading, setLoading] = useState(true);
|
||||
const [error, setError] = useState(null);
|
||||
|
||||
Reference in New Issue
Block a user