frontend client for gemstone. decentralised workplace app
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: stub invites route

serenity fe983690 7bcdde0a

+37 -1
+19 -1
src/app/(protected)/invites.tsx
··· 1 + import { Invites } from "@/components/Invites"; 2 + import { Loading } from "@/components/primitives/Loading"; 3 + import { useSessions } from "@/providers/authed/SessionsProvider"; 4 + import { View } from "react-native"; 5 + 1 6 const InviteRoute = () => { 2 - return <></>; 7 + const { isInitialising } = useSessions(); 8 + 9 + const isAppReady = !isInitialising; 10 + return ( 11 + <View 12 + style={{ 13 + flex: 1, 14 + justifyContent: "center", 15 + alignItems: "stretch", 16 + }} 17 + > 18 + {isAppReady ? <Invites /> : <Loading />} 19 + </View> 20 + ); 3 21 }; 4 22 5 23 export default InviteRoute;
+18
src/components/Invites/index.tsx
··· 1 + import { Text } from "@/components/primitives/Text"; 2 + import { View } from "react-native"; 3 + 4 + export const Invites = () => { 5 + return ( 6 + <View 7 + style={{ 8 + flex: 1, 9 + flexDirection: "column", 10 + padding: 32, 11 + gap: 16, 12 + alignItems: "center", 13 + }} 14 + > 15 + <Text>Hi!</Text> 16 + </View> 17 + ); 18 + };