Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

small updates

Steven Teya57cc3187344
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/update-invoice-settings-modal.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/update-invoice-settings-modal.tsx
index 96745b470c..ba99481cb1 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/update-invoice-settings-modal.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/update-invoice-settings-modal.tsx
@@ -10,7 +10,6 @@ import {
Dispatch,
SetStateAction,
useCallback,
- useEffect,
useMemo,
useState,
} from "react";
@@ -51,7 +50,6 @@ function UpdateInvoiceSettingsModalInner({
register,
handleSubmit,
watch,
- setValue,
formState: { isDirty },
} = useForm<UpdateInvoiceSettingsFormData>({
defaultValues: {
@@ -61,14 +59,6 @@ function UpdateInvoiceSettingsModalInner({
},
});
- useEffect(() => {
- if (partner?.invoiceSettings) {
- setValue("companyName", partner.companyName ?? "");
- setValue("address", partner.invoiceSettings.address ?? "");
- setValue("taxId", partner.invoiceSettings.taxId ?? "");
- }
- }, [partner?.invoiceSettings, setValue]);
-
const { executeAsync, isPending } = useAction(
updatePartnerInvoiceSettingsAction,
{
diff --git a/apps/web/app/(ee)/partners.dub.co/invoices/[payoutId]/route.tsx b/apps/web/app/(ee)/partners.dub.co/invoices/[payoutId]/route.tsx
index 707cc863d1..faac4b89d3 100644
--- a/apps/web/app/(ee)/partners.dub.co/invoices/[payoutId]/route.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/invoices/[payoutId]/route.tsx
@@ -201,7 +201,7 @@ export const GET = withPartnerProfile(async ({ partner, params }) => {
{partner.companyName || "-"}
</Text>
{partner.invoiceSettings?.address && (
- <Text style={tw("text-sm text-neutral-800 leading-6")}>
+ <Text style={tw("text-sm text-neutral-500 leading-6")}>
{partner.invoiceSettings.address}
</Text>
)}