adding ability to switch user on library selection screen

adding backend to support loading libraries
This commit is contained in:
Violet Caulfield
2024-10-20 06:09:18 -05:00
parent 7c2e60f7a2
commit b139cf1c7b
11 changed files with 81 additions and 45 deletions
+17
View File
@@ -0,0 +1,17 @@
import { H1, ScrollView, YStack } from "tamagui";
import { useApiClientContext } from "../jellyfin-api-provider";
import _ from "lodash";
export default function Home(): React.JSX.Element {
const { apiClient, username } = useApiClientContext();
return (
<ScrollView paddingLeft={10}>
<YStack alignContent='flex-start'>
<H1>Hi { _.isUndefined(username) ? "there" : `, ${username}`}</H1>
</YStack>
</ScrollView>
);
}