File tree Expand file tree Collapse file tree 1 file changed +41
-3
lines changed Expand file tree Collapse file tree 1 file changed +41
-3
lines changed Original file line number Diff line number Diff line change
1
+ 'use client' ;
1
2
import React from 'react' ;
2
3
import Collection from '@/comps/Collection' ;
3
4
import Link from 'next/link' ;
4
5
import { Button } from '@/components/ui/button' ;
6
+ import {
7
+ Dialog ,
8
+ DialogContent ,
9
+ DialogDescription ,
10
+ DialogHeader ,
11
+ DialogTitle ,
12
+ DialogTrigger ,
13
+ DialogFooter ,
14
+ DialogClose ,
15
+ } from '@/components/ui/dialog' ;
16
+ import organizations from '@/public/organizations.json' ;
5
17
6
18
export default function Issues ( ) {
7
19
return (
@@ -11,12 +23,38 @@ export default function Issues() {
11
23
Beginner-Friendly GSOC Issues
12
24
</ h1 >
13
25
< p className = "max-w-[42rem] leading-normal text-muted-foreground sm:text-xl sm:leading-8" >
14
- Explore the list of beginner-friendly GSOC issues from various organizations. Get started on
15
- your open source journey!
26
+ Explore the list of beginner-friendly GSOC issues from various
27
+ organizations. Get started on your open source journey!
16
28
</ p >
17
29
</ div >
30
+ < Filter />
18
31
< Collection />
19
-
20
32
</ div >
21
33
) ;
22
34
}
35
+
36
+ function Filter ( ) {
37
+ return (
38
+ < Dialog >
39
+ < DialogTrigger asChild >
40
+ < Button variant = "outline" > Filters</ Button >
41
+ </ DialogTrigger >
42
+ < DialogContent className = "sm:max-w-md" >
43
+ < DialogHeader className = "dark:text-white" >
44
+ < DialogTitle className = "dark:text-white" > Filters</ DialogTitle >
45
+ </ DialogHeader >
46
+
47
+ < div className = "flex items-center flex-wrap space-x-2 gap-7" >
48
+ < Button size = "sm" className = "px-3" onClick = { ( ) => setOpt ( '' ) } >
49
+ Remove filters
50
+ </ Button >
51
+ { organizations . map ( ( org ) => (
52
+ < Button size = "sm" className = "px-3" onClick = { ( ) => setOpt ( '' ) } >
53
+ < Link href = { `issues/${ org . org } ` } > { org . org } </ Link >
54
+ </ Button >
55
+ ) ) }
56
+ </ div >
57
+ </ DialogContent >
58
+ </ Dialog >
59
+ ) ;
60
+ }
You can’t perform that action at this time.
0 commit comments