Skip to content

Commit

Permalink
✨ Direct message page
Browse files Browse the repository at this point in the history
  • Loading branch information
ZickZenni committed Sep 6, 2024
1 parent 2c4072b commit 2a012a7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Loading from './components/Loading';
import HomePage from './pages/Home';
import GuildPage from './pages/Guild';
import ChannelPage from './pages/Guild/Channel';
import DirectMessagePage from './pages/Home/DirectMessage';

export default function App() {
return (
Expand All @@ -22,7 +23,9 @@ export default function App() {
<Serverbar />
<div className="app__content">
<Routes>
<Route path="/" element={<HomePage />} />
<Route path="/" element={<HomePage />}>
<Route path="dm/:dmId" element={<DirectMessagePage />} />
</Route>
<Route path="/guild/:id" element={<GuildPage />}>
<Route path="channel/:channelId" element={<ChannelPage />} />
</Route>
Expand Down
3 changes: 3 additions & 0 deletions src/renderer/pages/Home/DirectMessage/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function DirectMessagePage() {
return <div />;
}
6 changes: 4 additions & 2 deletions src/renderer/pages/Home/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useState } from 'react';
import { Link } from 'react-router-dom';
import { Link, Outlet } from 'react-router-dom';
import Topbar from '../../components/Topbar';
import UserPanel from '../../components/UserPanel';
import './Home.css';
Expand Down Expand Up @@ -69,7 +69,9 @@ export default function HomePage() {
</div>
<UserPanel />
</div>
<div className="home_page__content" />
<div className="home_page__content">
<Outlet />
</div>
</div>
</div>
);
Expand Down

0 comments on commit 2a012a7

Please sign in to comment.