chore: linting

This commit is contained in:
zhom
2026-03-29 15:01:26 +04:00
parent c516999f7a
commit decfdfcfc7
2 changed files with 3 additions and 5 deletions
-2
View File
@@ -75,7 +75,6 @@ export interface MultipleSelectorRef {
input: HTMLInputElement;
}
// eslint-disable-next-line react-refresh/only-export-components
export function useDebounce<T>(value: T, delay?: number): T {
const [debouncedValue, setDebouncedValue] = React.useState<T>(value);
@@ -284,7 +283,6 @@ const MultipleSelector = React.forwardRef<
};
void exec();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [debouncedSearchTerm, groupBy, open, triggerSearchOnFocus, onSearch]);
const CreatableItem = () => {
+3 -3
View File
@@ -1250,7 +1250,7 @@ export function ProfilesDataTable({
React.useEffect(() => {
if (!browserState.isClient) return;
let unlisten: (() => void) | undefined;
(async () => {
void (async () => {
try {
unlisten = await listen("stored-proxies-changed", () => {
// Also refresh tags on profile updates
@@ -1881,12 +1881,12 @@ export function ProfilesDataTable({
const syncInfo = meta.getProfileSyncInfo(profile.id);
const isLeader = syncInfo?.isLeader === true;
const isFollower = syncInfo?.isLeader === false;
const isDesynced = isFollower && syncInfo?.failedAtUrl != null;
const isDesynced = isFollower && syncInfo.failedAtUrl != null;
const stopTooltip = isLeader
? meta.t("profiles.synchronizer.stopLeader")
: isFollower
? meta.t("profiles.synchronizer.stopFollower", {
leaderName: syncInfo?.session.leader_profile_name ?? "",
leaderName: syncInfo.session.leader_profile_name ?? "",
})
: tooltipContent;