@@ -19,6 +19,8 @@ import { useShortcuts } from "../contexts/ShortCutContext";
1919import { useResponsive } from "../contexts/ResponsiveContext" ;
2020import { useBackendUrl } from "../hooks/useBackendUrl" ;
2121import { HEXA } from "../lib/colors" ;
22+ import { ShortCutIcon } from "../components/ShortCutIcon" ;
23+ import InfoModal from "../components/InfoModal" ;
2224
2325export default function Settings ( ) {
2426 const { setRightSidebarKey } = useRightSidebar ( ) ;
@@ -28,6 +30,7 @@ export default function Settings() {
2830 base : shades . base ,
2931 } ) ) ;
3032 const [ inputUrl , setInputUrl ] = useState ( "" ) ;
33+ const [ openInfoModal , setsetOpenInfoModal ] = useState ( false ) ;
3134 const { setShowShortcuts } = useShortcuts ( ) ;
3235 const {
3336 saveSearchHistory,
@@ -41,12 +44,9 @@ export default function Settings() {
4144 forceProxy,
4245 setForceProxy,
4346 } = useAppStorage ( ) ;
44- const { isAtOrBelow, isBetween, isAtOrAbove } = useResponsive ( ) ;
45- const betweenTabletAndLaptop = isBetween ( "md" , "lg" ) ;
47+ const { isAtOrBelow } = useResponsive ( ) ;
4648 const mobileAndBelow = isAtOrBelow ( "sm" ) ;
47- const tabletAndAbove = isAtOrAbove ( "md" , true ) ;
4849 const laptopAndBelow = isAtOrBelow ( "xl" ) ;
49- const laptopAndAbove = isAtOrAbove ( "xl" , true ) ;
5050 const tabletAndBelow = isAtOrBelow ( "md" , true ) ;
5151
5252 const {
@@ -113,7 +113,7 @@ export default function Settings() {
113113 } ;
114114
115115 const handleResetURL = ( ) => {
116- if ( confirm ( "Restore the default URL (http ://127.0.0.1:8000 )?" ) ) {
116+ if ( confirm ( "Restore the default URL (https ://seekbeat.onrender.com )?" ) ) {
117117 try {
118118 resetBackendUrl ( ) ;
119119 // optionally show toast/snackbar
@@ -578,6 +578,14 @@ export default function Settings() {
578578 gap : 10 , // RN 0.71+ supports gap; otherwise use margin
579579 } }
580580 >
581+ < TouchableOpacity onPress = { ( ) => setsetOpenInfoModal ( true ) } >
582+ < InfoIcon size = { 30 } color = { theme . accent } />
583+ </ TouchableOpacity >
584+ < InfoModal
585+ visible = { openInfoModal }
586+ onClose = { ( ) => setsetOpenInfoModal ( false ) }
587+ theme = { theme }
588+ />
581589 < TextInput
582590 value = { inputUrl }
583591 onChangeText = { setInputUrl }
@@ -595,7 +603,7 @@ export default function Settings() {
595603 color : theme . text ,
596604 } }
597605 placeholderTextColor = { theme . textSecondary }
598- placeholder = { backendUrl || "http ://localhost:8000 " }
606+ placeholder = { backendUrl || "https ://seekbeat.onrender.com " }
599607 />
600608
601609 < TouchableOpacity
@@ -751,8 +759,16 @@ export default function Settings() {
751759 </ Text >
752760 </ View >
753761 < View style = { styles . settingDescSet } >
754- < TouchableOpacity onPress = { ( ) => setShowShortcuts ( true ) } >
755- < InfoIcon size = { 50 } color = { theme . accent } />
762+ < TouchableOpacity
763+ onPress = { ( ) => setShowShortcuts ( true ) }
764+ style = { {
765+ padding : 10 ,
766+ borderWidth : 1 ,
767+ borderColor : theme . accent ,
768+ borderRadius : 100 ,
769+ } }
770+ >
771+ < ShortCutIcon size = { 50 } color = { theme . accent } />
756772 </ TouchableOpacity >
757773 </ View >
758774 </ View >
0 commit comments