mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-09-30 10:48:19 +03:00
hide add server button when searching
This commit is contained in:
@@ -89,8 +89,8 @@ export default function ServerManager({navigation}) {
|
||||
if (!servers.length) {
|
||||
return (
|
||||
<View style={{gap: 10, flex: 1, justifyContent: "center", alignItems: "center"}}>
|
||||
<EmptyStatePlaceholder message="No servers found" icon={<ServerOff color="gray"/>}/>
|
||||
<Button mode="text" onPress={() => navigation.navigate('add-server')} icon={() => <Plus size={18} color={theme.colors.primary}/>}>Add Server</Button>
|
||||
<EmptyStatePlaceholder message="No servers found" icon={<ServerOff color="gray"/>}/>
|
||||
{(!searchQuery || !query.length) && (<Button mode="text" onPress={() => navigation.navigate('add-server')} icon={() => <Plus size={18} color={theme.colors.primary}/>}>Add Server</Button>)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user