Refactor MarketPlace and Scene components; enhance drag-and-drop functionality in DraggableWidget and Panel; add WidgetPlaceHolder component; implement global echo logging interface.
This commit is contained in:
@@ -34,7 +34,7 @@ import Footer from "../components/footer/Footer";
|
||||
|
||||
const Project: React.FC = () => {
|
||||
let navigate = useNavigate();
|
||||
const echo = useLogger();
|
||||
// const echo = useLogger();
|
||||
|
||||
const { activeModule, setActiveModule } = useModuleStore();
|
||||
const { loadingProgress } = useLoadingProgress();
|
||||
@@ -58,7 +58,7 @@ const Project: React.FC = () => {
|
||||
setOrganization(Organization);
|
||||
setUserName(name);
|
||||
}
|
||||
echo.warn("Log in success full");
|
||||
echo.warn("Log in successful");
|
||||
} else {
|
||||
navigate("/");
|
||||
}
|
||||
@@ -86,7 +86,7 @@ const Project: React.FC = () => {
|
||||
{!selectedUser && (
|
||||
<>
|
||||
<KeyPressListener />
|
||||
{loadingProgress > 0 && <LoadingPage progress={loadingProgress} />}
|
||||
{/* {loadingProgress > 0 && <LoadingPage progress={loadingProgress} />} */}
|
||||
{!isPlaying && (
|
||||
<>
|
||||
{toggleThreeD && <ModuleToggle />}
|
||||
@@ -122,7 +122,7 @@ const Project: React.FC = () => {
|
||||
}
|
||||
onDragOver={(event) => event.preventDefault()}
|
||||
>
|
||||
<Scene />
|
||||
{/* <Scene /> */}
|
||||
</div>
|
||||
{selectedUser && <FollowPerson />}
|
||||
{isLogListVisible && (
|
||||
@@ -136,3 +136,26 @@ const Project: React.FC = () => {
|
||||
};
|
||||
|
||||
export default Project;
|
||||
|
||||
// src/global.d.ts
|
||||
// import { LogType } from "../components/ui/log/LoggerContext";
|
||||
|
||||
// export declare global {
|
||||
// const echo: {
|
||||
// log: (message: string) => void;
|
||||
// info: (message: string) => void;
|
||||
// warn: (message: string) => void;
|
||||
// error: (message: string) => void;
|
||||
// success: (message: string) => void;
|
||||
// clear: () => void;
|
||||
// };
|
||||
// }
|
||||
|
||||
// Project.tsx:61 Uncaught ReferenceError: echo is not defined
|
||||
// at Project.tsx:61:1
|
||||
// at commitHookEffectListMount (react-dom.development.js:23189:1)
|
||||
// at commitPassiveMountOnFiber (react-dom.development.js:24965:1)
|
||||
// at commitPassiveMountEffects_complete (react-dom.development.js:24930:1)
|
||||
// at commitPassiveMountEffects_begin (react-dom.development.js:24917:1)
|
||||
// at commitPassiveMountEffects (react-dom.development.js:24905:1)
|
||||
// this error occurs some time's
|
||||
|
||||
Reference in New Issue
Block a user