Skip to content

Commit

Permalink
feat: add noPadding prop to Footer
Browse files Browse the repository at this point in the history
  • Loading branch information
aversini committed Nov 6, 2023
1 parent cdeb437 commit 54e0515
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/ui-components/src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<footer className={footerClass}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export type FooterProps = {
className?: string;
noPaddings?: boolean;
row1?: React.ReactNode;
row2?: React.ReactNode;
};

0 comments on commit 54e0515

Please sign in to comment.