mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 04:42:10 +03:00
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:
committed by
Diego Rodrigues de Sa e Souza
parent
89eb8885b1
commit
d5647eab33
@@ -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);
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user