v3: linter and formatter pass

This commit is contained in:
khannurien
2026-03-22 16:08:12 +00:00
parent 34e908d1bc
commit a104113e05
17 changed files with 159 additions and 56 deletions

View File

@@ -1,4 +1,10 @@
import { useCallback, useEffect, useRef, useState, type RefObject } from "react";
import {
type RefObject,
useCallback,
useEffect,
useRef,
useState,
} from "react";
import { API_URL } from "../config/api.ts";
export interface UserResult {
@@ -70,7 +76,9 @@ export function useMentionAutocomplete(
debounceRef.current = setTimeout(async () => {
try {
const res = await fetch(
`${API_URL}/api/users/search?q=${encodeURIComponent(mention.query)}`,
`${API_URL}/api/users/search?q=${
encodeURIComponent(mention.query)
}`,
);
const body = await res.json();
if (body.success && body.data.length > 0) {