From 54e051581ce7d32e252f8be6cf31af633d7b7c47 Mon Sep 17 00:00:00 2001 From: Arno V Date: Mon, 6 Nov 2023 12:59:27 -0500 Subject: [PATCH] feat: add noPadding prop to Footer --- .../ui-components/src/components/Footer/Footer.tsx | 14 +++++++++----- .../src/components/Footer/FooterTypes.d.ts | 1 + 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/packages/ui-components/src/components/Footer/Footer.tsx b/packages/ui-components/src/components/Footer/Footer.tsx index 8a84820d..ff1e09b6 100644 --- a/packages/ui-components/src/components/Footer/Footer.tsx +++ b/packages/ui-components/src/components/Footer/Footer.tsx @@ -4,11 +4,15 @@ import clsx from "clsx"; import type { FooterProps } from "./FooterTypes"; -export const Footer = ({ className, row1, row2 }: FooterProps) => { - const footerClass = clsx( - "mb-[100px] text-center text-xs text-slate-300", - className, - ); +export const Footer = ({ + className, + row1, + row2, + noPaddings = false, +}: FooterProps) => { + const footerClass = clsx("text-center text-xs text-slate-300", className, { + "mb-[100px] ": !noPaddings, + }); return (