diff --git a/src/Button.tsx b/src/Button.tsx index b429cd7..1dc2ffa 100644 --- a/src/Button.tsx +++ b/src/Button.tsx @@ -5,7 +5,7 @@ export enum ButtonFormats { PRIMARY, SECONDARY, ERROR, - SUCCESS + SUCCESS, } export interface IButtonProps extends JSX.HTMLAttributes { @@ -20,7 +20,7 @@ export default function Button({ }: IButtonProps) { let cl = "ht-btn"; - if (className) cl += " " + className; + if (className) cl += " " + (className || ""); switch (format) { case ButtonFormats.DEFAULT: diff --git a/src/Card.tsx b/src/Card.tsx index 7f57ae2..2eacdb3 100644 --- a/src/Card.tsx +++ b/src/Card.tsx @@ -5,7 +5,7 @@ export default function Card({ ...props }: JSX.HTMLAttributes) { return ( -
+
{children}
); diff --git a/src/Container.tsx b/src/Container.tsx index df3b4e0..66ebcf1 100644 --- a/src/Container.tsx +++ b/src/Container.tsx @@ -5,7 +5,7 @@ export default function Container({ ...props }: JSX.HTMLAttributes) { return ( -
+
{children}
); diff --git a/src/Fab.tsx b/src/Fab.tsx index 84c35d7..a4635d6 100644 --- a/src/Fab.tsx +++ b/src/Fab.tsx @@ -9,7 +9,7 @@ export default function Fab({ let cl = "ht-fab " + (alignLeft ? "ht-fab-left " : ""); return ( - ); diff --git a/src/Header.tsx b/src/Header.tsx index c6cc5e0..a69f182 100644 --- a/src/Header.tsx +++ b/src/Header.tsx @@ -8,7 +8,7 @@ export default function Header({ ...props }: JSX.HTMLAttributes) { return ( -
+
{children}
); diff --git a/src/IconButton.tsx b/src/IconButton.tsx index a084f41..a64b176 100644 --- a/src/IconButton.tsx +++ b/src/IconButton.tsx @@ -5,7 +5,7 @@ export default function IconButton({ ...props }: JSX.HTMLAttributes) { return ( - ); diff --git a/src/Input.tsx b/src/Input.tsx index cd01df8..02614c5 100644 --- a/src/Input.tsx +++ b/src/Input.tsx @@ -6,7 +6,7 @@ export function Input({ ...props }: JSX.HTMLAttributes) { return ( - + {children} ); @@ -18,7 +18,7 @@ export function TextArea({ ...props }: JSX.HTMLAttributes) { return ( - ); @@ -30,7 +30,7 @@ export function InputGroup({ ...props }: JSX.HTMLAttributes) { return ( -
+
{children}
); @@ -74,7 +74,7 @@ export function InputSelect({ ...props }: JSX.HTMLAttributes) { return ( - {children} ); diff --git a/src/List.tsx b/src/List.tsx index 3e83e29..1a9b034 100644 --- a/src/List.tsx +++ b/src/List.tsx @@ -17,10 +17,10 @@ export default function List({ if (divider) cl += "ht-list-divider "; - cl += className; + cl += className || ""; return ( -
    +
      {children}
    ); diff --git a/src/Modal.tsx b/src/Modal.tsx index 3c0a038..493ed4c 100644 --- a/src/Modal.tsx +++ b/src/Modal.tsx @@ -8,7 +8,9 @@ export function Modal({ }: JSX.HTMLAttributes & { hidden?: boolean }) { return (
    {children} @@ -22,7 +24,7 @@ export function ModalTitle({ ...props }: JSX.HTMLAttributes) { return ( -
    +
    {children}
    ); @@ -34,7 +36,7 @@ export function ModalContent({ ...props }: JSX.HTMLAttributes) { return ( -
    +
    {children}
    ); @@ -46,7 +48,7 @@ export function ModalActions({ ...props }: JSX.HTMLAttributes) { return ( -
    +
    {children}
    ); diff --git a/src/Table.tsx b/src/Table.tsx index 71df7a6..819b31f 100644 --- a/src/Table.tsx +++ b/src/Table.tsx @@ -6,7 +6,7 @@ export default function Table({ ...props }: JSX.HTMLAttributes) { return ( -
    +
    {children}
    );