Fakultas Ilmu Komputer UI

SuccessChangePasswordScreen.tsx 1.46 KB
Newer Older
Abraham Rudolf Brahmana's avatar
Abraham Rudolf Brahmana committed
1
2
3
4
5
6
7
8
9
10
import { useNavigation } from "@react-navigation/core";
import * as React from "react";
import { StyleSheet } from "react-native";
import MainButton from "../components/button/MainButton";
import Spacer from "../components/Spacer/Spacer";

import { Text, View } from "../components/Themed";
import Colors from "../constants/Colors";

export default function SuccessChangePasswordScreen() {
11
  const nav = useNavigation();
Abraham Rudolf Brahmana's avatar
Abraham Rudolf Brahmana committed
12
13
14
  return (
    <View style={styles.container}>
      <Spacer variant={"xl"} />
15
16
17
      <View>
        <Text style={styles.title}>Ganti Password Berhasil</Text>
      </View>
Abraham Rudolf Brahmana's avatar
Abraham Rudolf Brahmana committed
18
      <Spacer variant={"xl"} />
19
20
21
22
23
      <View>
        <Text style={styles.paragraph}>
          Anda sudah bisa masuk menggunakan password baru anda.
        </Text>
      </View>
Abraham Rudolf Brahmana's avatar
Abraham Rudolf Brahmana committed
24
25
26
27
      <Spacer variant={"xl"} />
      <View style={styles.buttonContainer}>
        <MainButton
          text={"Kembali"}
28
          onPress={() => nav.navigate("Profile", { screen: "AccountSettings" })}
Abraham Rudolf Brahmana's avatar
Abraham Rudolf Brahmana committed
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
          colors={"Secondary"}
        />
      </View>
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    paddingTop: 50,
    paddingHorizontal: 24,
    backgroundColor: Colors.background,
  },
  title: {
    fontSize: 32,
    fontWeight: "400",
    fontStyle: "normal",
    fontFamily: "HelveticaNeue",
  },
  paragraph: {
    fontFamily: "HelveticaNeue",
    fontSize: 20,
    fontWeight: "300",
    fontStyle: "normal",
  },
  buttonContainer: {
    width: "100%",
  },
});