Invoicen is a simple invoice generator for freelancers and small businesses. It is a self hostable web application that can be used to generate invoices and download PDFs
This pull request includes changes to the Navbar component to improve the user experience by adding a skeleton loader and refactoring the conditional rendering logic.
Changes to the Navbar component:
src/components/layout/Navbar.tsx: Imported the Skeleton component and replaced the "loading..." text with the Skeleton component when the mounted state is false. Simplified the conditional rendering logic for the logo based on the theme.
Addition of the Skeleton component:
src/components/ui/logo-skeleton.tsx: Added a new Skeleton component to display a placeholder while the logo is loading.
This pull request includes changes to the
Navbar
component to improve the user experience by adding a skeleton loader and refactoring the conditional rendering logic.Changes to the
Navbar
component:src/components/layout/Navbar.tsx
: Imported theSkeleton
component and replaced the "loading..." text with theSkeleton
component when themounted
state isfalse
. Simplified the conditional rendering logic for the logo based on thetheme
.Addition of the
Skeleton
component:src/components/ui/logo-skeleton.tsx
: Added a newSkeleton
component to display a placeholder while the logo is loading.