diff --git a/plugins/Last.fm/src/ui/pages/Settings.tsx b/plugins/Last.fm/src/ui/pages/Settings.tsx index 1832f68..c8e2af1 100644 --- a/plugins/Last.fm/src/ui/pages/Settings.tsx +++ b/plugins/Last.fm/src/ui/pages/Settings.tsx @@ -63,20 +63,20 @@ export default function Settings() { saveSettings("username", value)} + onChange={(v: string) => saveSettings("username", v)} + isClearable /> saveSettings("apiKey", value)} + onChange={(v: string) => saveSettings("apiKey", v)} secureTextEntry={true} + isClearable /> - Linking.openURL("https://www.last.fm/api/account/create") - } + subLabel="https://www.last.fm/api/" + onPress={() => Linking.openURL("https://www.last.fm/api/")} /> saveSettings("appName", value)} + onChange={(v: string) => saveSettings("appName", v)} + isClearable /> { - const interval = Number(value); + onChange={(v: string) => { + const interval = Number(v); if (interval >= Constants.MIN_UPDATE_INTERVAL) { saveSettings("timeInterval", interval); } else { @@ -109,6 +110,7 @@ export default function Settings() { } }} keyboardType="numeric" + isClearable /> @@ -173,8 +175,6 @@ export default function Settings() { label="View Changelog" trailing={} onPress={() => { - // You might want to implement a navigation to your ChangelogView here - // For now, we'll open the GitHub URL Linking.openURL(Constants.GITHUB_COMMITS_URL); }} />