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 (
<>
<Header
isHome={false}
headerText={`Profile ${global.user.name.split(" ")[0]}`} />
<Container>
<Button
width="50%"
type={Button.Type.Outline}
onPress={() => global.isAuthenticated ? navigation.navigate("edit-profile") : navigation.navigate("login")}>
Edit Profile
</Button>
<Gap axis={Gap.Axis.Vertical} gap={12}></Gap>
<Text type={Text.StyleType.Large} isBold={true}>Username</Text>
<Text>{global.user.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