@ -1,5 +1,5 @@
import { AuthForm } from './Components/AuthForm';
import { Home } from './Components/Home';
import { Dashboard } from './Components/Dashboard';
import { Routes, Route } from 'react-router-dom';
import { PrivateRoute } from './Components/PrivateRoute';
import { AppProvider } from './Contexts/AppContext';
@ -12,7 +12,7 @@ function App() {
element={
<PrivateRoute>
<AppProvider>
<Home />
<Dashboard />
</AppProvider>
</PrivateRoute>
}
@ -8,7 +8,7 @@ import { UserProfile } from './UserProfile';
import { Channels } from './Channels';
import { Messages } from './Messages';
export const Home = () => {
export const Dashboard = () => {
const [showProfile, setShowProfile] = useState(false);
const [showChannels, setShowChannels] = useState(false);