Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #231

Merged
merged 3 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/components/layouts/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import Link from 'next/link';
import { FiSettings } from 'react-icons/fi';
import { ICommunityDiscordPlatfromProps } from '../../utils/interfaces';
import { useToken } from '../../context/TokenContext';
import TcText from '../shared/TcText';

const Sidebar = () => {
const router = useRouter();
Expand Down Expand Up @@ -115,6 +116,11 @@ const Sidebar = () => {
<div className="bg-secondary text-center w-10 h-10 rounded-full align-center flex flex-col justify-center text-xs" />
)}
</div>
<TcText
text={community?.name}
variant="body1"
fontWeight="bold"
/>
</div>
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion src/components/layouts/xs/SidebarXs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { conf } from '../../../configs';
import { FiSettings } from 'react-icons/fi';
import { useToken } from '../../../context/TokenContext';
import { ICommunityDiscordPlatfromProps } from '../../../utils/interfaces';
import TcText from '../../shared/TcText';

const Sidebar = () => {
const router = useRouter();
Expand Down Expand Up @@ -106,7 +107,7 @@ const Sidebar = () => {
<>
<div className="bg-gray-background sticky top-0 py-4 px-5 flex md:hidden flex-row justify-between items-center z-50">
<div className="flex flex-row">
<div className="flex flex-row text-center items-center">
<div className="flex flex-row text-center items-center space-x-3">
<div className="w-8 h-8 mb-2 mr-3">
<div className="w-10 h-10 mx-auto">
{connectedPlatform &&
Expand All @@ -128,6 +129,7 @@ const Sidebar = () => {
)}
</div>
</div>
<TcText text={community?.name} variant="h6" />
</div>
</div>
<FaBars size={30} onClick={handleDrawerOpen} />
Expand Down
Loading