feat: use session access_tokens

This commit is contained in:
swve 2024-06-01 12:23:01 +01:00
parent 08cc97f557
commit 52f2235942
74 changed files with 413 additions and 440 deletions

View file

@ -34,7 +34,7 @@ function CollectionThumbnail(props: PropsType) {
href={getUriWithOrg(
props.orgslug,
'/collection/' +
removeCollectionPrefix(props.collection.collection_uuid)
removeCollectionPrefix(props.collection.collection_uuid)
)}
>
<div
@ -55,7 +55,7 @@ function CollectionThumbnail(props: PropsType) {
href={getUriWithOrg(
props.orgslug,
'/collection/' +
removeCollectionPrefix(props.collection.collection_uuid)
removeCollectionPrefix(props.collection.collection_uuid)
)}
>
<h1 className="font-bold text-md justify-center">
@ -75,7 +75,7 @@ function CollectionThumbnail(props: PropsType) {
const CollectionAdminEditsArea = (props: any) => {
const router = useRouter()
const session = useLHSession() ;
const session = useLHSession() as any;
const deleteCollectionUI = async (collectionId: number) => {
await deleteCollection(collectionId, session.data?.tokens?.access_token)