@@ -11,7 +11,7 @@ interface Props {
11
11
12
12
export default function ListContainer ( props : Props ) {
13
13
const { uri } = props ;
14
- const [ currenTab , setCurrentTab ] = useState < "posts" | "members" > ( "posts" ) ;
14
+ const [ currentTab , setCurrentTab ] = useState < "posts" | "members" > ( "posts" ) ;
15
15
16
16
const handleTabChange = ( tab : "posts" | "members" ) => {
17
17
setCurrentTab ( tab ) ;
@@ -24,14 +24,14 @@ export default function ListContainer(props: Props) {
24
24
role = "tablist"
25
25
aria-orientation = "horizontal"
26
26
className = { `no-scrollbar border-skin-base flex flex-nowrap gap-3 overflow-auto border border-t-0 ${
27
- currenTab === "posts" ? "border-b" : "border-b-0"
27
+ currentTab === "posts" ? "border-b" : "border-b-0"
28
28
} px-3 pt-3`}
29
29
>
30
30
< button
31
31
role = "tab"
32
32
onClick = { ( ) => handleTabChange ( "posts" ) }
33
33
className = { `border-b-3 hover:text-primary shrink-0 cursor-pointer px-3 pb-2 font-semibold ${
34
- currenTab === "posts"
34
+ currentTab === "posts"
35
35
? "text-primary border-primary"
36
36
: "text-skin-secondary border-transparent"
37
37
} `}
@@ -42,16 +42,16 @@ export default function ListContainer(props: Props) {
42
42
role = "tab"
43
43
onClick = { ( ) => handleTabChange ( "members" ) }
44
44
className = { `border-b-3 hover:text-primary shrink-0 cursor-pointer px-3 pb-2 font-semibold ${
45
- currenTab === "members"
45
+ currentTab === "members"
46
46
? "text-primary border-primary"
47
47
: "text-skin-secondary border-transparent"
48
48
} `}
49
49
>
50
50
Members
51
51
</ button >
52
52
</ div >
53
- { currenTab === "posts" && < FeedContainer feed = { uri } mode = "list" /> }
54
- { currenTab === "members" && < ListMembersContainer list = { uri } /> }
53
+ { currentTab === "posts" && < FeedContainer feed = { uri } mode = "list" /> }
54
+ { currentTab === "members" && < ListMembersContainer list = { uri } /> }
55
55
</ section >
56
56
) ;
57
57
}
0 commit comments