23 lines
886 B
TypeScript
23 lines
886 B
TypeScript
import React from "react";
|
|
import "./App.css";
|
|
// Remove all imports related to SpacetimeDB, auth, and chat logic that are now in ChatContainer or other modules
|
|
// import { tables, reducers } from './module_bindings';
|
|
// import type * as Types from './module_bindings/types';
|
|
// import { useSpacetimeDB, useTable, useReducer } from 'spacetimedb/react';
|
|
// import { Identity } from 'spacetimedb';
|
|
// import { useAuth } from "react-oidc-context";
|
|
// import { TOKEN_KEY } from './main';
|
|
|
|
// Import the new ChatContainer component
|
|
import { ChatContainer } from "./chat"; // Import from index.ts
|
|
|
|
function App() {
|
|
// All the state, effects, reducers, table fetches, and UI rendering logic
|
|
// related to chat and authentication have been moved to ChatContainer and its sub-components.
|
|
// App.tsx now simply renders the ChatContainer.
|
|
|
|
return <ChatContainer />;
|
|
}
|
|
|
|
export default App;
|