diff --git a/src/components/base-modal.tsx b/src/components/base-modal.tsx index f6cf682..2a1cb03 100644 --- a/src/components/base-modal.tsx +++ b/src/components/base-modal.tsx @@ -11,40 +11,40 @@ const BaseModal: React.FC = ({ isOpen, onClose, title, - children, + children }) => { if (!isOpen) return null; return (
-
+
-
-
+
+
-
-

+
+

{title}

{children}

-
+
diff --git a/src/components/invite-modal.tsx b/src/components/invite-modal.tsx index f6c07f9..e857e77 100644 --- a/src/components/invite-modal.tsx +++ b/src/components/invite-modal.tsx @@ -24,7 +24,7 @@ export const shareInventory = ( const InviteModal: React.FC = ({ isOpen, onClose, - selectedInventory, + selectedInventory }) => { const [selectedPermission, setSelectedPermission] = useState< "reader" | "writer" | "admin" @@ -57,7 +57,7 @@ const InviteModal: React.FC = ({ setSelectedPermission( @@ -86,14 +86,14 @@ const InviteModal: React.FC = ({
-

Existing Shared Users

-
+

Existing Shared Users

+
{invitedMembers?.length > 0 ? ( -
    +
      {invitedMembers.map((user) => (
    • {user?.profile?.name} @@ -132,13 +132,13 @@ const InviteModal: React.FC = ({
- - +