Logged in as {session.webId}
- {/* Use the logout function to log out */} - -- Blog - {" "} - Profile -
-Loading
; - } - returnLoading...
; - } - if (mainContainer.isDoingInitialFetch()) { - returnLoading Blob
; - } - - return ( -Loading Post...
; - } else if (mediaResource.status.isError) { - returnError: {mediaResource.status.message}
; - } else if (mediaResource.isAbsent()) { - returnPost does not exist.
; - } - - return ( -{post.articleBody}
} - {post.image &&No URI Present
} -Loading Profile...
; - } else if (webIdResource.status.isError) { - returnError: {webIdResource.status.message}
; - } - returnPosted By: {profile.fn}
; -}; diff --git a/packages/demo-react/src/profile/Profile.tsx b/packages/demo-react/src/profile/Profile.tsx deleted file mode 100644 index ae57f90..0000000 --- a/packages/demo-react/src/profile/Profile.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import { - useLdo, - useResource, - useSolidAuth, - useSubject, -} from "@ldo/solid-react"; -import type { ChangeEvent } from "react"; -import React, { useCallback, type FunctionComponent } from "react"; -import { SolidProfileShapeShapeType } from "../.ldo/solidProfile.shapeTypes"; - -export const Profile: FunctionComponent = () => { - const { session } = useSolidAuth(); - const profile = useSubject(SolidProfileShapeShapeType, session.webId); - const webIdResource = useResource(session.webId); - const { changeData, commitData } = useLdo(); - - const onNameChange = useCallback( - async (e: ChangeEvent