Skip to content

Commit

Permalink
refactor: type and remove dev page
Browse files Browse the repository at this point in the history
  • Loading branch information
TeeGoood committed Jul 15, 2024
1 parent f414374 commit 7c43ab7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 34 deletions.
31 changes: 0 additions & 31 deletions src/app/dev/page.tsx

This file was deleted.

14 changes: 14 additions & 0 deletions src/app/rpkm/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
'use client'

import UserCard from '@/components/UserCard'
import React from 'react'

const page = () => {
return (
<div>
<UserCard />
</div>
)
}

export default page
6 changes: 3 additions & 3 deletions src/components/UserCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const UserCard = () => {
const { user } = useAuth();
const name = `${user?.firstname} ${user?.lastname}`;
const studentId = user?.email.split('@')[0];
const photo_url = user?.photo_url;
const photoUrl = user?.photoUrl;

return (
<div className="relative w-full h-full flex justify-center items-center p-4">
Expand All @@ -21,9 +21,9 @@ const UserCard = () => {
/>
<div className="absolute top-[15%] left-[9%] w-[65%] h-[65%] flex flex-col items-center justify-center p-4 bg-blue-900 rounded-lg">
<div className="w-[35%] h-[50%] overflow-hidden rounded-full">
{photo_url && (
{photoUrl && (
<img
src={photo_url}
src={photoUrl}
alt="user-picture"
className="w-full h-full object-cover"
/>
Expand Down

0 comments on commit 7c43ab7

Please sign in to comment.