Skip to content

Commit

Permalink
Removed redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadfadhli committed Nov 1, 2024
1 parent bdc5f8f commit 37188ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
18 changes: 0 additions & 18 deletions frontend/iQMA-Skills-Builder/app/screens/ProfilePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,6 @@ const ProfilePage: React.FC = () => {
console.log('badges:', badges);

setAllSectionDetails(sectionDetails);
// Testing
// setAllSectionDetails([
// {
// sectionDuration: 136,
// sectionID: 'SEC0001',
// sectionName: 'Communication',
// },
// {
// sectionDuration: 136,
// sectionID: 'SEC0001',
// sectionName: 'Communication',
// },
// {
// sectionDuration: 136,
// sectionID: 'SEC0001',
// sectionName: 'Communication',
// },
// ]);
setUserDetails(userDetails);
setBadges(badges);
} catch (error) {
Expand Down
6 changes: 4 additions & 2 deletions frontend/iQMA-Skills-Builder/components/ProfileCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const ProfileCard: React.FC<ProfileCardProps> = ({userDetails}) => {
try {
const result = await Share.share({
message: 'Join me on my iQMA Learning Adventure!',
url: 'https://example.com/my-profile', // Add your profile URL here
title: 'Yi Peng Tan Profile',
// url: 'https://example.com/my-profile', // Add your profile URL here
// title: 'Yi Peng Tan Profile',
});

if (result.action === Share.sharedAction) {
Expand Down Expand Up @@ -144,6 +144,8 @@ const styles = StyleSheet.create({
borderRadius: 10,
borderColor: '#9CA3AF',
borderWidth: 1,


},
editText: {
fontSize: 12,
Expand Down

0 comments on commit 37188ed

Please sign in to comment.