mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 22:11:13 -05:00
Fix ESLint errors
This commit is contained in:
@@ -8,15 +8,15 @@ import { format } from 'date-fns';
|
||||
import { handleError } from '@/lib/errorHandler';
|
||||
import { AuditLogEntry } from '@/types/database';
|
||||
|
||||
export function ProfileAuditLog() {
|
||||
export function ProfileAuditLog(): React.JSX.Element {
|
||||
const [logs, setLogs] = useState<AuditLogEntry[]>([]);
|
||||
const [loading, setLoading] = useState(true);
|
||||
|
||||
useEffect(() => {
|
||||
fetchAuditLogs();
|
||||
void fetchAuditLogs();
|
||||
}, []);
|
||||
|
||||
const fetchAuditLogs = async () => {
|
||||
const fetchAuditLogs = async (): Promise<void> => {
|
||||
try {
|
||||
const { data, error } = await supabase
|
||||
.from('profile_audit_log')
|
||||
|
||||
Reference in New Issue
Block a user