Skip to content

Commit

Permalink
Merge pull request #613 from furkanipek/i18n-update
Browse files Browse the repository at this point in the history
Update app/components/invoice/InvoiceActions
  • Loading branch information
al1abb authored Feb 26, 2025
2 parents 76b0739 + 9b5af19 commit aa6320b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions app/components/invoice/InvoiceActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,21 @@ import {

// Contexts
import { useInvoiceContext } from "@/contexts/InvoiceContext";
import { useTranslationContext } from "@/contexts/TranslationContext";

// Icons
import { FileInput, FolderUp, Import, Plus } from "lucide-react";

const InvoiceActions = () => {
const { invoicePdfLoading } = useInvoiceContext();

const { _t } = useTranslationContext();
return (
<div className={`xl:w-[45%]`}>
<Card className="h-auto sticky top-0 px-2">
<CardHeader>
<CardTitle>ACTIONS</CardTitle>
<CardDescription>Operations and preview</CardDescription>
<CardTitle>{_t("actions.title")}</CardTitle>
<CardDescription>{_t("actions.description")}</CardDescription>
</CardHeader>

<div className="flex flex-col flex-wrap items-center gap-2">
Expand All @@ -44,7 +46,7 @@ const InvoiceActions = () => {
disabled={invoicePdfLoading}
>
<FolderUp />
Load Invoice
{_t("actions.loadInvoice")}
</BaseButton>
</InvoiceLoaderModal>

Expand All @@ -56,7 +58,7 @@ const InvoiceActions = () => {
disabled={invoicePdfLoading}
>
<Import />
Export Invoice
{_t("actions.exportInvoice")}
</BaseButton>
</InvoiceExportModal>
</div>
Expand All @@ -70,7 +72,7 @@ const InvoiceActions = () => {
disabled={invoicePdfLoading}
>
<Plus />
New Invoice
{_t("actions.newInvoice")}
</BaseButton>
</NewInvoiceAlert>

Expand All @@ -82,7 +84,7 @@ const InvoiceActions = () => {
loadingText="Generating your invoice"
>
<FileInput />
Generate PDF
{_t("actions.generatePdf")}
</BaseButton>
</div>

Expand Down

0 comments on commit aa6320b

Please sign in to comment.