Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Feat: libraries #25

wants to merge 1 commit into from

Conversation

Iwijn
Copy link

@Iwijn Iwijn commented Nov 30, 2023

No description provided.

Comment on lines +38 to +46
{
showDetails ?
<>
<Text style={styles.smallText}>{library.email}</Text>
<Text style={styles.smallText}>{library.telephone}</Text>
</>
:
<></>
}
Copy link
Member

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?

Comment on lines +54 to +56
<Pressable style={{...styles.button, backgroundColor: "#ddd"}} onPress={() => WebBrowser.openBrowserAsync(library.link)}>
<Text>Go to site</Text>
</Pressable>
Copy link
Member

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

Comment on lines +9 to +17
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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

schamperQuery -> libraryQuery

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants