mirror of
https://github.com/Jellify-Music/App.git
synced 2026-05-24 22:08:56 -05:00
maybe this? so we don't use the hook in the mutation?
This commit is contained in:
@@ -8,7 +8,7 @@ export default function ServerAddress(): React.JSX.Element {
|
||||
|
||||
const [serverUrl, setServerUrl] = useState("");
|
||||
|
||||
const handleServerUrlMutation = () => {
|
||||
const handleServerUrlMutation = (serverUrl: string) => {
|
||||
serverUrlMutation.mutate(serverUrl)
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ export default function ServerAddress(): React.JSX.Element {
|
||||
></Input>
|
||||
|
||||
<Button
|
||||
onPress={handleServerUrlMutation}
|
||||
onPress={() => handleServerUrlMutation(serverUrl)}
|
||||
disabled={_.isEmpty(serverUrl)}>
|
||||
Connect
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user