mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-05-17 20:08:07 +08:00
Added initial activation page
This commit is contained in:
parent
4a00dd1817
commit
e52aca41cc
6 changed files with 96 additions and 2 deletions
28
src/routes/Activation/Activation.tsx
Normal file
28
src/routes/Activation/Activation.tsx
Normal file
|
@ -0,0 +1,28 @@
|
|||
import * as React from "react";
|
||||
import styles, { colors } from "../../styles";
|
||||
import { View, Text, ActivityIndicator } from "react-native";
|
||||
import AnimatedContainer from "../../components/AnimatedContainer/AnimatedContainer";
|
||||
import { useRoute } from "@react-navigation/native";
|
||||
|
||||
interface ActivationRouteParams {
|
||||
uid?: string;
|
||||
token?: string;
|
||||
}
|
||||
|
||||
export default function Activation() {
|
||||
const route = useRoute();
|
||||
const { uid, token } = route.params as ActivationRouteParams;
|
||||
return (
|
||||
<View style={styles.background}>
|
||||
<AnimatedContainer>
|
||||
<Text style={styles.text_white_large}>Activation</Text>
|
||||
<View style={{ paddingVertical: 8 }} />
|
||||
<ActivityIndicator size={96} color={colors.blue_1} />
|
||||
<Text style={styles.text_white_medium}>
|
||||
Activating {uid ? `with UID: ${uid}` : ""}{" "}
|
||||
{token ? `and Token: ${token}` : ""}
|
||||
</Text>
|
||||
</AnimatedContainer>
|
||||
</View>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue