Update
This commit is contained in:
@@ -2,6 +2,7 @@ import { UserMySelf } from "lingchair-client-protocol"
|
|||||||
import useAsyncEffect from "../utils/useAsyncEffect.ts"
|
import useAsyncEffect from "../utils/useAsyncEffect.ts"
|
||||||
import Avatar from "./Avatar.tsx"
|
import Avatar from "./Avatar.tsx"
|
||||||
import getClient from "../getClient.ts"
|
import getClient from "../getClient.ts"
|
||||||
|
import React from "react"
|
||||||
|
|
||||||
interface Args extends React.HTMLAttributes<HTMLElement> {
|
interface Args extends React.HTMLAttributes<HTMLElement> {
|
||||||
avatarRef?: React.LegacyRef<HTMLElement>
|
avatarRef?: React.LegacyRef<HTMLElement>
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
import isMobileUI from "../utils/isMobileUI.ts"
|
import isMobileUI from "../utils/isMobileUI.ts"
|
||||||
import AvatarMySelf from "./AvatarMySelf.tsx"
|
import AvatarMySelf from "./AvatarMySelf.tsx"
|
||||||
import MainSharedContext from './MainSharedContext.ts'
|
import MainSharedContext from './MainSharedContext.ts'
|
||||||
|
import React from "react"
|
||||||
|
|
||||||
export default function Main() {
|
export default function Main() {
|
||||||
const sharedContext = {
|
const sharedContext = {
|
||||||
openChatFragment: React.useRef()
|
openChatFragment: React.useRef()
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<MainSharedContext.Provider value={{}}>
|
<MainSharedContext.Provider value={sharedContext}>
|
||||||
<div style={{
|
<div style={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
|
|||||||
Reference in New Issue
Block a user