Skip to content

Commit

Permalink
removed all debug lines 🐰
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-fintlabs committed Mar 6, 2024
1 parent 5aa41dd commit a6e8321
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 81 deletions.
1 change: 0 additions & 1 deletion app/api/component-api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ class ComponentApi {

static async delete(componentName: string) {
const url = `${API_URL}/api/components/${componentName}`;
console.log("delete component url", url);
const request = new Request(url, {
method: 'DELETE',
credentials: 'same-origin'
Expand Down
4 changes: 0 additions & 4 deletions app/api/contact-api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@ class ContactApi {
});

if (response.ok) {
console.log("response ok", response.statusText);
return {message: "Contact updated!", variant: "success"};
} else {
console.log("response ok", response.statusText);
return {message: "Error updating contact", variant: "error"};
}

Expand All @@ -92,10 +90,8 @@ class ContactApi {
});

if (response.ok) {
console.log("response ok", response.statusText);
return {message: "Contact deleted!", variant: "success"};
} else {
console.log("Error:", response.statusText);
return {message: "Error removing contact", variant: "error"};
}

Expand Down
3 changes: 0 additions & 3 deletions app/api/organization-api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ class OrganizationApi {

static async delete(organisationName:String | undefined) {
const url = `${API_URL}/api/organisations/${organisationName}`;
console.log("delete org url", url);

const response = await fetch(url, {
method: "DELETE",
Expand All @@ -101,14 +100,12 @@ class OrganizationApi {

static async setLegalContact(orgName:String, contactNin:String) {
const url = `${API_URL}/api/organisations/${orgName}/contacts/legal/${contactNin}`;
console.log("setLegalContact url", url);

const response = await fetch(url, {
method: "PUT",
credentials: 'same-origin'
});

console.log("setLegalContact response", response);
if(response.ok) {
return {message: "Legal contact ble satt", variant: "success"};
} else {
Expand Down
1 change: 1 addition & 0 deletions app/components/confirm-action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const ConfirmAction: React.FC<ConfirmActionProps> = ({
const [open, setOpen] = useState(false);

const handleClose = (isConfirmed: boolean) => {
console.info(actionType + " confirmed: ", isConfirmed);
setOpen(false);
//todo: the form is not closing after the action is confirmed
};
Expand Down
3 changes: 0 additions & 3 deletions app/components/contact-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,10 @@ const ContactForm: React.FC<ContactFormProps> = ({ selectedContact, f, r }) => {

const handleSubmit = () => {
if (confirmDelete) {
console.log("Deleting contact...");
// setConfirmDelete(false);
setActionType("delete");
}

if (r && r.current) {
console.log("close the modal", r);
r.current.close();
}
};
Expand Down
67 changes: 0 additions & 67 deletions app/components/delete-confirm.tsx

This file was deleted.

1 change: 0 additions & 1 deletion app/routes/contact._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ export default function ContactPage() {
className="self-center px-5"
onSubmit={(e) => {
e.preventDefault();
console.log("Søk!");
}}
>
<Search
Expand Down
1 change: 0 additions & 1 deletion app/routes/organization.$id.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ export default function OrganizationDetailsPage() {

useEffect(() => {
setShow(true);
console.log("fetcher state:", fetcher.state);
}, [fetcher.state]);

return (
Expand Down
1 change: 0 additions & 1 deletion app/routes/organization._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ export default function OrganizationPage() {
className="self-center px-5"
onSubmit={(e) => {
e.preventDefault();
console.log("Search!");
}}
>
<Search
Expand Down

0 comments on commit a6e8321

Please sign in to comment.