mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-05-22 10:07:34 +08:00
feat: Update disclaimer
This commit is contained in:
@@ -26,7 +26,7 @@ const LoginModal = () => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isLoginModalVisible && !isSettingsPage) {
|
if (isLoginModalVisible && !isSettingsPage) {
|
||||||
const isUsernameVisible = serverConfig?.StorageType !== "localstorage";
|
const isUsernameVisible = serverConfig?.StorageType !== "localstorage";
|
||||||
|
|
||||||
// Use a small delay to ensure the modal is fully rendered
|
// Use a small delay to ensure the modal is fully rendered
|
||||||
const focusTimeout = setTimeout(() => {
|
const focusTimeout = setTimeout(() => {
|
||||||
if (isUsernameVisible) {
|
if (isUsernameVisible) {
|
||||||
@@ -35,7 +35,7 @@ const LoginModal = () => {
|
|||||||
passwordInputRef.current?.focus();
|
passwordInputRef.current?.focus();
|
||||||
}
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|
||||||
return () => clearTimeout(focusTimeout);
|
return () => clearTimeout(focusTimeout);
|
||||||
}
|
}
|
||||||
}, [isLoginModalVisible, serverConfig, isSettingsPage]);
|
}, [isLoginModalVisible, serverConfig, isSettingsPage]);
|
||||||
@@ -55,11 +55,11 @@ const LoginModal = () => {
|
|||||||
hideLoginModal();
|
hideLoginModal();
|
||||||
setUsername("");
|
setUsername("");
|
||||||
setPassword("");
|
setPassword("");
|
||||||
|
|
||||||
// Show disclaimer alert after successful login
|
// Show disclaimer alert after successful login
|
||||||
Alert.alert(
|
Alert.alert(
|
||||||
"免责声明",
|
"免责声明",
|
||||||
"本网站仅提供影视信息搜索服务,所有内容均来自第三方网站。本站不存储任何视频资源,不对任何内容的准确性、合法性、完整性负责。",
|
"本应用仅提供影视信息搜索服务,所有内容均来自第三方网站。本站不存储任何视频资源,不对任何内容的准确性、合法性、完整性负责。",
|
||||||
[{ text: "确定" }]
|
[{ text: "确定" }]
|
||||||
);
|
);
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Reference in New Issue
Block a user