-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: libraries #25
base: master
Are you sure you want to change the base?
Feat: libraries #25
Conversation
{ | ||
showDetails ? | ||
<> | ||
<Text style={styles.smallText}>{library.email}</Text> | ||
<Text style={styles.smallText}>{library.telephone}</Text> | ||
</> | ||
: | ||
<></> | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you move this details + the opening hours to a different screen using react-navigation/stack?
<Pressable style={{...styles.button, backgroundColor: "#ddd"}} onPress={() => WebBrowser.openBrowserAsync(library.link)}> | ||
<Text>Go to site</Text> | ||
</Pressable> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also move this to the details screen and replace it with a button from react-native-paper
or move it behind an icon in the header of the details screen
const schamperQuery = useSuspenseQuery<LibraryRequest, Error>({ | ||
queryKey: ["libraries"], | ||
queryFn: async () => { | ||
const res = await fetch(`${ENDPOINTS.LIBRARIES}/library_groups/main.json`); | ||
return res.json(); | ||
}, | ||
notifyOnChangeProps, | ||
}); | ||
return schamperQuery; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
schamperQuery
-> libraryQuery
No description provided.