-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Leaderboard navi changes - now navigates! (#52)
* working step 1 * getting navigation set up in leaderboard * linting yay * Update frontend/components/PopularUser.tsx Co-authored-by: Ania Misiorek <[email protected]> --------- Co-authored-by: Ania Misiorek <[email protected]>
- Loading branch information
1 parent
586bd1d
commit 9f62fc3
Showing
6 changed files
with
41 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
import { View, Text } from 'react-native' | ||
import { View, Text, StyleSheet } from 'react-native' | ||
import React from 'react' | ||
|
||
interface ProfileBioProps { | ||
fullName: string | ||
username: string | ||
description: string | ||
} | ||
|
||
const ProfileBio = ({ fullName, description }: ProfileBioProps) => { | ||
const ProfileBio = ({ fullName, username, description }: ProfileBioProps) => { | ||
return ( | ||
<View className='flex flex-col space-y-1 w-96'> | ||
<Text className='text-base font-bold'>{fullName}</Text> | ||
{username != "" && <Text style={styles.username}>@{username}</Text> } | ||
<Text>{description}</Text> | ||
</View> | ||
) | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
username: { | ||
color: "#02AD98", | ||
marginBottom: 10, | ||
} | ||
}) | ||
|
||
export default ProfileBio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters