Skip to content

Commit

Permalink
refactor: Clean up SimpleDashboard component layout
Browse files Browse the repository at this point in the history
- Removed unnecessary whitespace in SimpleDashboard component.
- Improved readability of the total entries display by restructuring JSX for better formatting.
  • Loading branch information
bramses committed Jan 10, 2025
1 parent 539b086 commit 3628336
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/components/SimpleDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const SimpleDashboard = () => {
const [isUploaderModalOpen, setUploaderModalOpen] = useState(false);
const [totalEntries, setTotalEntries] = useState(-1);


// const [inboxEntries, setInboxEntries] = useState<any[]>([]);
const { user, isLoaded } = useUser();

Expand Down Expand Up @@ -350,9 +349,19 @@ const SimpleDashboard = () => {
</span>
, {firstLastName.firstName}!
</h1>
{totalEntries >= 0 && (<h2 className="mx-2 mt-8 text-xl font-extrabold text-gray-400 md:text-lg lg:text-lg">
You have <span className="bg-gradient-to-r from-sky-400 to-emerald-600 bg-clip-text text-transparent">{totalEntries}</span> entries in your commonbase. That's the equivalent of <span className="bg-gradient-to-r from-sky-400 to-emerald-600 bg-clip-text text-transparent">{Math.round(totalEntries / 251)}</span> journals filled!
</h2>)}
{totalEntries >= 0 && (
<h2 className="mx-2 mt-8 text-xl font-extrabold text-gray-400 md:text-lg lg:text-lg">
You have{' '}
<span className="bg-gradient-to-r from-sky-400 to-emerald-600 bg-clip-text text-transparent">
{totalEntries}
</span>{' '}
entries in your commonbase. That&apos;s the equivalent of{' '}
<span className="bg-gradient-to-r from-sky-400 to-emerald-600 bg-clip-text text-transparent">
{Math.round(totalEntries / 251)}
</span>{' '}
journals filled!
</h2>
)}
<h2 className="mx-2 mt-8 text-xl font-extrabold text-gray-400 md:text-lg lg:text-lg">
What do you want to accomplish today?
</h2>
Expand Down

0 comments on commit 3628336

Please sign in to comment.