frontend client for gemstone. decentralised workplace app

feat: stub invites route

serenity fe983690 7bcdde0a

Changed files
+37 -1
src
app
(protected)
components
Invites
+19 -1
src/app/(protected)/invites.tsx
···
+
import { Invites } from "@/components/Invites";
+
import { Loading } from "@/components/primitives/Loading";
+
import { useSessions } from "@/providers/authed/SessionsProvider";
+
import { View } from "react-native";
+
const InviteRoute = () => {
-
return <></>;
+
const { isInitialising } = useSessions();
+
+
const isAppReady = !isInitialising;
+
return (
+
<View
+
style={{
+
flex: 1,
+
justifyContent: "center",
+
alignItems: "stretch",
+
}}
+
>
+
{isAppReady ? <Invites /> : <Loading />}
+
</View>
+
);
};
export default InviteRoute;
+18
src/components/Invites/index.tsx
···
+
import { Text } from "@/components/primitives/Text";
+
import { View } from "react-native";
+
+
export const Invites = () => {
+
return (
+
<View
+
style={{
+
flex: 1,
+
flexDirection: "column",
+
padding: 32,
+
gap: 16,
+
alignItems: "center",
+
}}
+
>
+
<Text>Hi!</Text>
+
</View>
+
);
+
};