diff --git a/src/commands/mobile/mobile.tsx b/src/commands/mobile/mobile.tsx index 364b54fdb..a4c0a7d88 100644 --- a/src/commands/mobile/mobile.tsx +++ b/src/commands/mobile/mobile.tsx @@ -1,7 +1,7 @@ import { c as _c } from "react-compiler-runtime"; import { toString as qrToString } from 'qrcode'; import * as React from 'react'; -import { useCallback, useEffect, useState } from 'react'; +import { useEffect, useState } from 'react'; import { Pane } from '../../components/design-system/Pane.js'; import type { KeyboardEvent } from '../../ink/events/keyboard-event.js'; import { Box, Text } from '../../ink.js'; diff --git a/src/commands/plugin/PluginOptionsDialog.tsx b/src/commands/plugin/PluginOptionsDialog.tsx index 543e4062e..ef2998a6d 100644 --- a/src/commands/plugin/PluginOptionsDialog.tsx +++ b/src/commands/plugin/PluginOptionsDialog.tsx @@ -1,6 +1,6 @@ import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; -import React, { useCallback, useState } from 'react'; +import React, { useState } from 'react'; import { Dialog } from '../../components/design-system/Dialog.js'; import { stringWidth } from '../../ink/stringWidth.js'; // eslint-disable-next-line custom-rules/prefer-use-keybindings -- raw text input for config dialog diff --git a/src/commands/plugin/PluginSettings.tsx b/src/commands/plugin/PluginSettings.tsx index 79a31bc13..e68c9442a 100644 --- a/src/commands/plugin/PluginSettings.tsx +++ b/src/commands/plugin/PluginSettings.tsx @@ -1,7 +1,7 @@ import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; -import { useCallback, useEffect, useState } from 'react'; +import { useEffect, useState } from 'react'; import { ConfigurableShortcutHint } from '../../components/ConfigurableShortcutHint.js'; import { Byline } from '../../components/design-system/Byline.js'; import { Pane } from '../../components/design-system/Pane.js'; diff --git a/src/commands/rate-limit-options/rate-limit-options.tsx b/src/commands/rate-limit-options/rate-limit-options.tsx index 77827b095..18c9ea668 100644 --- a/src/commands/rate-limit-options/rate-limit-options.tsx +++ b/src/commands/rate-limit-options/rate-limit-options.tsx @@ -1,5 +1,5 @@ import { c as _c } from "react-compiler-runtime"; -import React, { useMemo, useState } from 'react'; +import React, { useState } from 'react'; import type { CommandResultDisplay, LocalJSXCommandContext } from '../../commands.js'; import { type OptionWithDescription, Select } from '../../components/CustomSelect/select.js'; import { Dialog } from '../../components/design-system/Dialog.js'; diff --git a/src/commands/review/UltrareviewOverageDialog.tsx b/src/commands/review/UltrareviewOverageDialog.tsx index 5cc1b3986..ce6090a3a 100644 --- a/src/commands/review/UltrareviewOverageDialog.tsx +++ b/src/commands/review/UltrareviewOverageDialog.tsx @@ -1,5 +1,5 @@ import { c as _c } from "react-compiler-runtime"; -import React, { useCallback, useRef, useState } from 'react'; +import React, { useRef, useState } from 'react'; import { Select } from '../../components/CustomSelect/select.js'; import { Dialog } from '../../components/design-system/Dialog.js'; import { Box, Text } from '../../ink.js'; diff --git a/src/commands/thinkback/thinkback.tsx b/src/commands/thinkback/thinkback.tsx index 206d818ef..6bda79817 100644 --- a/src/commands/thinkback/thinkback.tsx +++ b/src/commands/thinkback/thinkback.tsx @@ -3,7 +3,7 @@ import { execa } from 'execa'; import { readFile } from 'fs/promises'; import { join } from 'path'; import * as React from 'react'; -import { useCallback, useEffect, useState } from 'react'; +import { useEffect, useState } from 'react'; import type { CommandResultDisplay } from '../../commands.js'; import { Select } from '../../components/CustomSelect/select.js'; import { Dialog } from '../../components/design-system/Dialog.js'; diff --git a/src/components/CoordinatorAgentStatus.tsx b/src/components/CoordinatorAgentStatus.tsx index 067113a7d..f4a4863cf 100644 --- a/src/components/CoordinatorAgentStatus.tsx +++ b/src/components/CoordinatorAgentStatus.tsx @@ -81,7 +81,7 @@ export function CoordinatorTaskPanel(): React.ReactNode { * stays accurate without needing its own tick. */ export function useCoordinatorTaskCount() { - const tasks = useAppState(_temp); + useAppState(_temp); let t0; t0 = 0; return t0; diff --git a/src/components/EffortCallout.tsx b/src/components/EffortCallout.tsx index 7fcf4001b..f0027a31d 100644 --- a/src/components/EffortCallout.tsx +++ b/src/components/EffortCallout.tsx @@ -1,5 +1,5 @@ import { c as _c } from "react-compiler-runtime"; -import React, { useCallback, useEffect, useRef } from 'react'; +import React, { useEffect, useRef } from 'react'; import { Box, Text } from '../ink.js'; import { isMaxSubscriber, isProSubscriber, isTeamSubscriber } from '../utils/auth.js'; import { getGlobalConfig, saveGlobalConfig } from '../utils/config.js'; diff --git a/src/components/FeedbackSurvey/usePostCompactSurvey.tsx b/src/components/FeedbackSurvey/usePostCompactSurvey.tsx index 3956eebf3..71029cd1d 100644 --- a/src/components/FeedbackSurvey/usePostCompactSurvey.tsx +++ b/src/components/FeedbackSurvey/usePostCompactSurvey.tsx @@ -1,5 +1,5 @@ import { c as _c } from "react-compiler-runtime"; -import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; +import { useEffect, useRef, useState } from 'react'; import { isFeedbackSurveyDisabled } from 'src/services/analytics/config.js'; import { checkStatsigFeatureGate_CACHED_MAY_BE_STALE } from 'src/services/analytics/growthbook.js'; import { type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, logEvent } from 'src/services/analytics/index.js'; diff --git a/src/components/HelpV2/Commands.tsx b/src/components/HelpV2/Commands.tsx index e216a016f..f497bf35a 100644 --- a/src/components/HelpV2/Commands.tsx +++ b/src/components/HelpV2/Commands.tsx @@ -1,6 +1,5 @@ import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; -import { useMemo } from 'react'; import { type Command, formatDescriptionWithSource } from '../../commands.js'; import { Box, Text } from '../../ink.js'; import { truncate } from '../../utils/format.js';