Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c7d9a8b

Browse files
committed
Add a button in the navbar for reporting a bug
1 parent c0db498 commit c7d9a8b

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

src/components/AppNavBar.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,15 @@ const navbarItems = [
2020
href: '/members',
2121
},
2222
{
23-
title: 'Our Chatroom',
24-
value: 'our-chatroom',
23+
title: 'Chatroom',
24+
value: 'chatroom',
2525
href: '/chat',
2626
},
27+
{
28+
title: 'Report Bug',
29+
value: 'report-bug',
30+
href: 'https://github.com/coderplex-org/coderplex-org/issues/new',
31+
},
2732
]
2833

2934
export default function AppNavBar() {

src/components/HomePageFeed.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import {
4141
} from '@/components'
4242
import type { GoalResponse } from 'src/pages/[username]'
4343
import { scrollToContentWithId } from 'src/utils'
44-
import { IconBrandDiscord } from 'tabler-icons'
44+
import { IconBrandDiscord, IconBug } from 'tabler-icons'
4545
import toast, { Toaster } from 'react-hot-toast'
4646
import ListModal from './modal/ListModal'
4747

@@ -453,6 +453,15 @@ function HomePageSideNavBar() {
453453
<IconBrandDiscord className="text-gray-400 group-hover:text-gray-500 flex-shrink-0 -ml-1 mr-3 h-6 w-6" />
454454
<span className="truncate">Our Chatroom</span>
455455
</A>
456+
457+
<A
458+
href="https://github.com/coderplex-org/coderplex-org/issues/new"
459+
className="text-gray-600 hover:bg-gray-50 group flex items-center px-3 py-2 text-sm font-medium rounded-md"
460+
aria-current="false"
461+
>
462+
<IconBug className="text-gray-400 group-hover:text-gray-500 flex-shrink-0 -ml-1 mr-3 h-6 w-6" />
463+
<span className="truncate">Report a Bug</span>
464+
</A>
456465
</>
457466
)}
458467
{!session && (

src/components/Markdown.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ function Repl({ replLink }: { replLink: string }) {
1313
src={`https://repl.it/${replLink}?lite=true`}
1414
scrolling="no"
1515
frameBorder="no"
16-
allowTransparency={true}
1716
allowFullScreen={true}
1817
sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"
1918
/>

0 commit comments

Comments
 (0)