mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: avatar edition & new avatar component
This commit is contained in:
parent
a51a128fcb
commit
9b8ec34bba
12 changed files with 260 additions and 98 deletions
|
|
@ -42,6 +42,7 @@ import { CourseProvider } from "@components/Contexts/CourseContext";
|
|||
import { useSession } from "@components/Contexts/SessionContext";
|
||||
import AIEditorToolkit from "./AI/AIEditorToolkit";
|
||||
import useGetAIFeatures from "@components/AI/Hooks/useGetAIFeatures";
|
||||
import UserAvatar from "../UserAvatar";
|
||||
|
||||
|
||||
interface Editor {
|
||||
|
|
@ -207,7 +208,7 @@ function Editor(props: Editor) {
|
|||
|
||||
<EditorUserProfileWrapper>
|
||||
{!session.isAuthenticated && <span>Loading</span>}
|
||||
{session.isAuthenticated && <Avvvatars value={session.user.user_uuid} style="shape" />}
|
||||
{session.isAuthenticated && <UserAvatar width={40} border="border-4" rounded="rounded-full"/>}
|
||||
</EditorUserProfileWrapper>
|
||||
|
||||
</EditorUsersSection>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue