@@ -11,14 +11,14 @@ export function PoolCard(props: PoolCardProps) {
11
11
return match ( props )
12
12
. with ( { queryResult : P . not ( P . nullish ) } , ( { queryResult } ) =>
13
13
match ( queryResult )
14
- . with ( { status : "error" , error : P . select ( ) } , ( error ) => < ErrorCard error = { error } /> )
14
+ . with ( { status : "error" , error : P . select ( ) } , ( error ) => < PoolErrorCard error = { error } /> )
15
15
. with ( { status : "pending" } , ( ) => < LoadingCard /> )
16
16
. with ( { status : "success" , data : P . select ( ) } , ( data ) => (
17
- < DataCard data = { data } redirectProps = { props } />
17
+ < PoolDataCard data = { data } redirectProps = { props } />
18
18
) )
19
- . otherwise ( ( ) => < ErrorCard /> ) ,
19
+ . otherwise ( ( ) => < PoolErrorCard /> ) ,
20
20
)
21
- . otherwise ( ( ) => < DataCard data = { props as PoolCardDataProps } redirectProps = { props } /> ) ;
21
+ . otherwise ( ( ) => < PoolDataCard data = { props as PoolCardDataProps } redirectProps = { props } /> ) ;
22
22
}
23
23
24
24
function LoadingCard ( ) {
@@ -37,7 +37,7 @@ function LoadingCard() {
37
37
) ;
38
38
}
39
39
40
- export function DataCard ( {
40
+ export function PoolDataCard ( {
41
41
data,
42
42
redirectProps,
43
43
} : {
@@ -70,6 +70,6 @@ export function DataCard({
70
70
) ;
71
71
}
72
72
73
- export function ErrorCard ( { error } : { error ?: Error | null } ) {
73
+ export function PoolErrorCard ( { error } : { error ?: Error | null } ) {
74
74
return < > { error ? < div > Error: { error . message } </ div > : < div > Unknown Error</ div > } </ > ;
75
75
}
0 commit comments