Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.
TypeScript fintechinvoiceinvoice-generatorinvoice-pdfinvoice-templateinvoicesnextjsopen-sourcequotesreactreact-pdf-rendererself-hostedshadcn-uitailwindcsstypescript
fix: update README logo and refactor invoice form for Stripe payment link (#190)
Vlad Sazonau850a00ba07f8
diff --git a/.github/screenshots/easy-invoice-logo-readme.png b/.github/screenshots/easy-invoice-logo-readme.pngnew file mode 100644index 0000000..259c211Binary files /dev/null and b/.github/screenshots/easy-invoice-logo-readme.png differdiff --git a/.github/screenshots/easy-invoice-new-logo.png b/.github/screenshots/easy-invoice-new-logo.pngdeleted file mode 100644index 8eac5b6..0000000Binary files a/.github/screenshots/easy-invoice-new-logo.png and /dev/null differdiff --git a/README.md b/README.mdindex a7bd30d..862e9d1 100644--- a/README.md+++ b/README.md@@ -1,5 +1,5 @@<div align="center">- <img src=".github/screenshots/easy-invoice-logo.svg" alt="EasyInvoicePDF Logo" width="160" height="160">+ <img src=".github/screenshots/easy-invoice-logo-readme.png" alt="EasyInvoicePDF Logo" width="160" height="160"><h1>EasyInvoicePDF</h1><h3>Free & Open-Source Invoice Generator</h3><p>Create professional invoices instantly in your browser with <strong>Live Preview</strong>, <strong>Multiple Templates</strong> (including a Stripe-style design). <strong>No Sign-Up Required</strong>.</p>diff --git a/src/app/(app)/components/invoice-form/sections/general-information.tsx b/src/app/(app)/components/invoice-form/sections/general-information.tsxindex 3bfffc7..108145a 100644--- a/src/app/(app)/components/invoice-form/sections/general-information.tsx+++ b/src/app/(app)/components/invoice-form/sections/general-information.tsx@@ -219,36 +219,6 @@ export const GeneralInformation = memo(function GeneralInformation({)}</div>- {/* Pay Online URL - Only for Stripe template */}- {template === "stripe" && (- <div className="duration-500 animate-in fade-in slide-in-from-bottom-2">- <Label htmlFor={`stripePayOnlineUrl`} className="">- Payment Link URL (Optional)- </Label>-- <Controller- name="stripePayOnlineUrl"- control={control}- render={({ field }) => (- <Input- {...field}- id={`stripePayOnlineUrl`}- type="url"- className="mt-1"- />- )}- />- {errors.stripePayOnlineUrl ? (- <ErrorMessage>{errors.stripePayOnlineUrl.message}</ErrorMessage>- ) : (- <InputHelperMessage>- Enter your payment URL. This adds a "Pay Online"- button to the PDF invoice.- </InputHelperMessage>- )}- </div>- )}-{/* Language PDF Select */}<div><Label htmlFor={`language`} className="mb-1">@@ -765,6 +735,36 @@ export const GeneralInformation = memo(function GeneralInformation({<ErrorMessage>{errors.logo.message}</ErrorMessage>) : null}</div>++ {/* Pay Online URL - Only for Stripe template */}+ {template === "stripe" && (+ <div className="duration-500 animate-in fade-in slide-in-from-bottom-2">+ <Label htmlFor={`stripePayOnlineUrl`} className="">+ Payment Link URL (Optional)+ </Label>++ <Controller+ name="stripePayOnlineUrl"+ control={control}+ render={({ field }) => (+ <Input+ {...field}+ id={`stripePayOnlineUrl`}+ type="url"+ className="mt-1"+ />+ )}+ />+ {errors.stripePayOnlineUrl ? (+ <ErrorMessage>{errors.stripePayOnlineUrl.message}</ErrorMessage>+ ) : (+ <InputHelperMessage>+ Enter your payment URL. This adds a "Pay Online"+ button to the PDF invoice.+ </InputHelperMessage>+ )}+ </div>+ )}</div></div>);