Skip to content

Commit

Permalink
Try removing username
Browse files Browse the repository at this point in the history
  • Loading branch information
williamKhine committed Jun 25, 2024
1 parent 679e280 commit 3db68ad
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions components/dashboard/intro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,9 @@ import AcceptedSection from "./acceptedSection";
export default function Intro({ user, applicationStatus, formattedDeadline, rsvpStatus }:
{ user: any, applicationStatus: any, formattedDeadline: any, rsvpStatus: any }
) {
let userFirstName = user.user_metadata.full_name;
try {
userFirstName = user.user_metadata.full_name.split(' ')[0];
} catch (e) {
console.error(e);
}
return (
<div className="md:sticky top-0 z-10 shrink-0 px-6 md:py-8 py-2 border-b-2 border-b-gray-300 bg-[#f7fafc]">
<h1 className="text-xl md:text-4xl text-gray-800 font-bold font-sans">{userFirstName}'s Home</h1>
<h1 className="text-xl md:text-4xl text-gray-800 font-bold font-sans">Your Home</h1>
<p className="md:text-xl text-gray-400 md:mt-4 font-sans whitespace-pre-line">Welcome to your user dashboard!</p>
<p className="text-gray-800 mt-2">Having trouble? Please contact us at through {" "}
<a
Expand Down

0 comments on commit 3db68ad

Please sign in to comment.