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.

Update create-commission-sheet.tsx

Steven Teya3144d4290a6
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx
index e3b072ca0a..de3555a1ce 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx
@@ -746,14 +746,7 @@ function CreateCommissionSheetContent({
</div>
</div>
- <AnimatedSizeContainer
- height
- transition={{ ease: "easeInOut", duration: 0.2 }}
- className={!hasInvoiceId ? "hidden" : ""}
- style={{
- display: !hasInvoiceId ? "none" : "block",
- }}
- >
+ <div>
<div className="flex items-center gap-4">
<Switch
fn={setHasInvoiceId}
@@ -801,16 +794,9 @@ function CreateCommissionSheetContent({
</div>
</div>
)}
- </AnimatedSizeContainer>
+ </div>
- <AnimatedSizeContainer
- height
- transition={{ ease: "easeInOut", duration: 0.2 }}
- className={!hasProductId ? "hidden" : ""}
- style={{
- display: !hasProductId ? "none" : "block",
- }}
- >
+ <div>
<div className="flex items-center gap-4">
<Switch
fn={setHasProductId}
@@ -858,7 +844,7 @@ function CreateCommissionSheetContent({
</div>
</div>
)}
- </AnimatedSizeContainer>
+ </div>
</div>
) : null)}
</div>