fix: remove dead userDismissed ref after auto-open removal

The userDismissed ref was only read by the removed auto-open useEffect.
Remove the ref declaration and the three onClose assignments that set it.
This commit is contained in:
Chris Staley
2026-03-30 10:33:39 -06:00
committed by Diego Rodrigues de Sa e Souza
parent 89eb8885b1
commit d5647eab33

View File

@@ -802,7 +802,6 @@ export default function ProviderDetailPage() {
const { copied, copy } = useCopyToClipboard();
const t = useTranslations("providers");
const notify = useNotificationStore();
const userDismissed = useRef(false);
const [proxyTarget, setProxyTarget] = useState(null);
const [proxyConfig, setProxyConfig] = useState(null);
const [connProxyMap, setConnProxyMap] = useState<
@@ -2408,7 +2407,6 @@ export default function ProviderDetailPage() {
providerInfo={providerInfo}
onSuccess={handleOAuthSuccess}
onClose={() => {
userDismissed.current = true;
setShowOAuthModal(false);
}}
/>
@@ -2417,7 +2415,6 @@ export default function ProviderDetailPage() {
isOpen={showOAuthModal}
onSuccess={handleOAuthSuccess}
onClose={() => {
userDismissed.current = true;
setShowOAuthModal(false);
}}
/>
@@ -2428,7 +2425,6 @@ export default function ProviderDetailPage() {
providerInfo={providerInfo}
onSuccess={handleOAuthSuccess}
onClose={() => {
userDismissed.current = true;
setShowOAuthModal(false);
}}
/>