From 27082acf5c7bf03ee1380dfd8edde358cdeb85c8 Mon Sep 17 00:00:00 2001 From: Ren Amamiya <123083837+reyamir@users.noreply.github.com> Date: Sat, 1 Apr 2023 15:46:08 +0700 Subject: [PATCH] updated navigation --- .../multiAccounts/activeAccount.tsx | 4 +-- .../multiAccounts/inactiveAccount.tsx | 4 +-- src/components/multiAccounts/index.tsx | 6 ++--- src/components/navigation/channels.tsx | 25 +++++++++++++++++++ src/components/navigation/chats.tsx | 12 ++++----- src/components/navigation/index.tsx | 5 +++- src/components/navigation/newsfeed.tsx | 18 ++++++------- 7 files changed, 49 insertions(+), 25 deletions(-) create mode 100644 src/components/navigation/channels.tsx diff --git a/src/components/multiAccounts/activeAccount.tsx b/src/components/multiAccounts/activeAccount.tsx index 3b7fb1de..fb244fde 100644 --- a/src/components/multiAccounts/activeAccount.tsx +++ b/src/components/multiAccounts/activeAccount.tsx @@ -56,12 +56,12 @@ export const ActiveAccount = memo(function ActiveAccount({ user }: { user: any } return ( - diff --git a/src/components/multiAccounts/inactiveAccount.tsx b/src/components/multiAccounts/inactiveAccount.tsx index 1aa710b3..b2d42c6e 100644 --- a/src/components/multiAccounts/inactiveAccount.tsx +++ b/src/components/multiAccounts/inactiveAccount.tsx @@ -11,12 +11,12 @@ export const InactiveAccount = memo(function InactiveAccount({ user }: { user: a }; return ( - diff --git a/src/components/multiAccounts/index.tsx b/src/components/multiAccounts/index.tsx index fa66b1f1..6e7fdc71 100644 --- a/src/components/multiAccounts/index.tsx +++ b/src/components/multiAccounts/index.tsx @@ -38,18 +38,18 @@ export default function MultiAccounts() { }, []); return ( -
+
{users.map((user) => renderAccount(user))}
diff --git a/src/components/navigation/channels.tsx b/src/components/navigation/channels.tsx new file mode 100644 index 00000000..23ce19b9 --- /dev/null +++ b/src/components/navigation/channels.tsx @@ -0,0 +1,25 @@ +import * as Collapsible from '@radix-ui/react-collapsible'; +import { TriangleUpIcon } from '@radix-ui/react-icons'; +import { useState } from 'react'; + +export default function Channels() { + const [open, setOpen] = useState(true); + + return ( + +
+ +
+ +
+

Channels

+
+ +
+
+ ); +} diff --git a/src/components/navigation/chats.tsx b/src/components/navigation/chats.tsx index f9169731..aa2a947d 100644 --- a/src/components/navigation/chats.tsx +++ b/src/components/navigation/chats.tsx @@ -6,21 +6,19 @@ export default function Chats() { const [open, setOpen] = useState(true); return ( - -
+ +
- +
-

- Chats -

+

Chats

- +
); diff --git a/src/components/navigation/index.tsx b/src/components/navigation/index.tsx index a10d3c55..fdfbbab9 100644 --- a/src/components/navigation/index.tsx +++ b/src/components/navigation/index.tsx @@ -1,11 +1,14 @@ +import Channels from '@components/navigation/channels'; import Chats from '@components/navigation/chats'; import Newsfeed from '@components/navigation/newsfeed'; export default function Navigation() { return ( -
+
{/* Newsfeed */} + {/* Channels */} + {/* Chats */}
diff --git a/src/components/navigation/newsfeed.tsx b/src/components/navigation/newsfeed.tsx index 9a1318c7..aa46ff43 100644 --- a/src/components/navigation/newsfeed.tsx +++ b/src/components/navigation/newsfeed.tsx @@ -12,21 +12,19 @@ export default function Newsfeed() {
- +
-

- Newsfeed -

+

Newsfeed

- +
@@ -35,8 +33,8 @@ export default function Newsfeed() {