Browse Source

rename dashboard

master
david 2 years ago
parent
commit
4543742d40
  1. 4
      src/App.js
  2. 2
      src/Components/Dashboard.js

4
src/App.js

@ -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>
}

2
src/Components/Home.js → src/Components/Dashboard.js

@ -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);
Loading…
Cancel
Save