feat: Init explore metadata features & redesign org settings panel

This commit is contained in:
swve 2024-12-18 00:24:37 +01:00
parent 87787724c4
commit bfd27ef6e3
12 changed files with 1419 additions and 217 deletions

View file

@ -54,3 +54,15 @@ export async function uploadOrganizationThumbnail(
const res = await errorHandling(result)
return res
}
export const uploadOrganizationPreview = async (orgId: string, file: File, access_token: string) => {
const formData = new FormData();
formData.append('preview_file', file);
const result: any = await fetch(
`${getAPIUrl()}orgs/` + orgId + '/preview',
RequestBodyFormWithAuthHeader('PUT', formData, null, access_token)
)
const res = await errorHandling(result)
return res
};