1
1
import { useSelector } from "@/hooks/useTypedSelector" ;
2
2
import Link from "next/link" ;
3
- import { useRouter } from ' next/router' ;
3
+ import { useRouter } from " next/router" ;
4
4
5
5
/**
6
6
* @interface SidebarProps
@@ -26,9 +26,7 @@ export default function Sidebar(): JSX.Element {
26
26
return router . asPath === link ;
27
27
} ;
28
28
29
- const scoreboardLink = hasCurrentCommunity
30
- ? `/communities/${ currentCommunity . slug } /scoreboard`
31
- : "" ;
29
+ const scoreboardLink = hasCurrentCommunity ? `/communities/${ currentCommunity . slug } /scoreboard` : "" ;
32
30
const mainLink = hasCurrentCommunity ? `/communities/${ currentCommunity . slug } ` : "" ;
33
31
34
32
return (
@@ -37,18 +35,16 @@ export default function Sidebar(): JSX.Element {
37
35
< div className = { isActive ( mainLink ) ? "" : "opacity-80" } >
38
36
< div className = "font-medium text-.5xl leading-snug" > Challenges</ div >
39
37
< div className = "text-sm font-light lg:w-full lg:pr-7 pt-2 mb-6 md:mb-0" >
40
- In the courses of this community, you will be able to learn about new
41
- technologies, solve challenges, get feedback, and earn bounties.
38
+ In the courses of this community, you will be able to learn about new technologies, solve challenges, get feedback, and earn bounties.
42
39
</ div >
43
40
</ div >
44
41
</ Link >
45
42
{ hasCurrentCommunity && (
46
43
< Link href = { scoreboardLink } >
47
44
< div className = { isActive ( scoreboardLink ) ? "pt-5" : "opacity-80 md:block hidden scroll-smooth pt-5" } >
48
45
< div className = "font-medium text-.5xl leading-snug" > Scoreboard</ div >
49
- < div className = "text-sm font-light lg:w-full lg:pr-7 pt-2" >
50
- On the scoreboard, you can see which users have accumulated the most
51
- reputation by giving valuable feedback to their peers.
46
+ < div className = "text-sm font-light lg:w-full lg:pr-7 pt-2 mb-6 md:mb-0" >
47
+ On the scoreboard, you can see which users have accumulated the most reputation by giving valuable feedback to their peers.
52
48
</ div >
53
49
</ div >
54
50
</ Link >
0 commit comments