Skip to content

Commit

Permalink
refactor:removed consoles
Browse files Browse the repository at this point in the history
Signed-off-by: pranalidhanavade <[email protected]>
  • Loading branch information
pranalidhanavade committed Nov 27, 2024
1 parent 7dd170b commit 0508903
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/components/organization/OrganizationDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import CopyDid from '../../commonComponents/CopyDid';
import { setToLocalStorage } from '../../api/Auth';
import { Tooltip } from 'flowbite-react';
import DIDList from './configuration-settings/DidList';
// FIXME: undefined type
const OrganizationDetails = ({ orgData }: { orgData: Organisation | undefined }) => {

const OrganizationDetails = ({ orgData }: { orgData: Organisation }) => {

const { org_agents } = orgData as Organisation;
const agentData: OrgAgent | null =
Expand Down
7 changes: 0 additions & 7 deletions src/components/organization/OrganizationsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ const OrganizationsList = () => {
window.location.href = pathRoutes.organizations.dashboard;
};
let content: React.JSX.Element = <></>;
console.log("🚀 ~ OrganizationsList ~ organizationsList:", organizationsList)
if (organizationsList && organizationsList?.length > 0) {
console.log("test1");
content = (
<div>
<div className="mt-1 grid w-full grid-cols-1 gap-4 mt-0 mb-4 xl:grid-cols-2 2xl:grid-cols-3">
Expand Down Expand Up @@ -213,7 +211,6 @@ const OrganizationsList = () => {
</div>
);
} else if (organizationsList) {
console.log("test2");
content = (
<EmptyListMessage
message={'No Organization'}
Expand All @@ -239,10 +236,6 @@ const OrganizationsList = () => {
/>
);
}

console.log("test3333");
console.log({ message, error, organizationsList, currentPage });

return (

<div className="px-4 pt-2">
Expand Down
3 changes: 1 addition & 2 deletions src/components/organization/interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,12 @@ export interface ILogoImage {
imagePreviewUrl: string | ArrayBuffer | null | File;
fileName: string;
}
// FIXME:
export interface EditOrgdetailsModalProps {
openModal: boolean;
setMessage: (message: string) => void;
setOpenModal: (flag: boolean) => void;
onEditSucess?: () => void;
orgData: Organisation | undefined;
orgData: Organisation;
}
export interface IOrgInfo {
name: string;
Expand Down

0 comments on commit 0508903

Please sign in to comment.