File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
src/compounds/RequestList Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,18 @@ const RequestList = ({ requests }) => (
8
8
< >
9
9
< Title title = 'My Requests' size = 'medium' />
10
10
< div className = 'rounded overflow-hidden' >
11
- { requests . map ( ( req , index ) => (
11
+ { requests . length === 0 ? (
12
+ < p className = 'mt-2' >
13
+ You do not have any requests yet.
14
+ < br />
15
+ < a href = '/browse' > Browse our available services</ a > to create a request,
16
+ or start a new general request by clicking the < b > "Initiate a Request"</ b > button above.
17
+ </ p >
18
+ ) : ( requests . map ( ( req , index ) => (
12
19
< Link key = { req . id } href = { `${ req . href } ` } passHref legacyBehavior >
13
20
< RequestItem request = { req } index = { index } />
14
21
</ Link >
15
- ) ) }
22
+ ) ) ) }
16
23
</ div >
17
24
</ >
18
25
)
Original file line number Diff line number Diff line change @@ -41,3 +41,8 @@ Default.args = {
41
41
} ,
42
42
] ,
43
43
}
44
+
45
+ export const Alternate = Template . bind ( { } )
46
+ Alternate . args = {
47
+ requests : [ ] ,
48
+ }
You can’t perform that action at this time.
0 commit comments