Fakultas Ilmu Komputer UI

Commit 7687186b authored by jahnsmichael's avatar jahnsmichael
Browse files

[GREEN] ProfilePage scenes

parent 24bc1808
import { Box, Text, Header, Gap } from "components";
import { Text, Header, Gap, Button } from "components";
import { AppContext } from 'contexts';
import styled from 'styled-components/native';
import { useNavigation } from '@react-navigation/native';
import React, { useContext } from "react";
const ProfilePage = () => {
const global = useContext(AppContext);
const navigation = useNavigation();
return (
headerText={`Profile ${global.user.name.split(" ")[0]}`} />
onPress={() => global.isAuthenticated ? navigation.navigate("edit-profile") : navigation.navigate("login")}>
Edit Profile
<Gap axis={Gap.Axis.Vertical} gap={12}></Gap>
<Text type={Text.StyleType.Large} isBold={true}>Username</Text>
<Gap axis={Gap.Axis.Vertical} gap={12}></Gap>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment