Fix: Format entire frontend properly

This commit is contained in:
Daniel Hougaard
2024-03-18 16:00:03 +01:00
parent 1ede551c3e
commit 9002e6cb33
230 changed files with 2752 additions and 2941 deletions
+1 -1
View File
@@ -11,6 +11,6 @@ const checkAuth = async () => {
"Content-Type": "application/json"
}
}).then((res) => res);
}
};
export default checkAuth;
@@ -2,7 +2,7 @@ import SecurityClient from "@app/components/utilities/SecurityClient";
/**
* Will create a new integration session and return it for the given org
* @returns
* @returns
*/
const linkGitAppInstallationWithOrganization = (installationId: string, sessionId: string) =>
SecurityClient.fetchCall("/api/v1/secret-scanning/link-installation", {
@@ -16,7 +16,7 @@ const linkGitAppInstallationWithOrganization = (installationId: string, sessionI
})
}).then(async (res) => {
if (res && res.status === 200) {
return true
return true;
}
console.log("Failed to link installation to organization");
return undefined;
@@ -4,25 +4,26 @@ export enum RiskStatus {
RESOLVED_FALSE_POSITIVE = "RESOLVED_FALSE_POSITIVE",
RESOLVED_REVOKED = "RESOLVED_REVOKED",
RESOLVED_NOT_REVOKED = "RESOLVED_NOT_REVOKED",
UNRESOLVED = "UNRESOLVED",
UNRESOLVED = "UNRESOLVED"
}
/**
* Will create a new integration session and return it for the given org
* @returns
* @returns
*/
const updateRiskStatus = (organizationId: string, riskId: string, status: RiskStatus) =>
SecurityClient.fetchCall(`/api/v1/secret-scanning/organization/${organizationId}/risks/${riskId}/status`, {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
status
})
}).then(async (res) => {
SecurityClient.fetchCall(
`/api/v1/secret-scanning/organization/${organizationId}/risks/${riskId}/status`,
{
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
status
})
}
).then(async (res) => {
if (res && res.status === 200) {
return res.json();
}