File tree 1 file changed +24
-1
lines changed
1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,16 @@ import { getCountryFromIpAddress } from "@/lib/country/getCountryFromIpAddress";
3
3
import { useEffect , useState } from "react" ;
4
4
import { setNewSearchParamsAndPushRoute } from "./product/setNewSearchParamsAndPushRoute" ;
5
5
import { useSearchParams , usePathname , useRouter } from "next/navigation" ;
6
+ import { SomethingWrongButton } from "./buttons/SomethingWrongButton" ;
7
+ import {
8
+ Card ,
9
+ CardContent ,
10
+ CardDescription ,
11
+ CardFooter ,
12
+ CardHeader ,
13
+ CardTitle ,
14
+ } from "./ui/card" ;
15
+ import { PageLoadingSpinner } from "./loading/PageLoadingSpinner" ;
6
16
7
17
export function CountrySetter ( ) {
8
18
const [ countryCode , setCountryCode ] = useState ( ) ;
@@ -29,5 +39,18 @@ export function CountrySetter() {
29
39
} ) ;
30
40
}
31
41
32
- return < > Fetching country...</ > ;
42
+ return (
43
+ < Card >
44
+ < CardHeader >
45
+ < CardTitle > Please wait</ CardTitle >
46
+ < CardDescription > Fetching country...</ CardDescription >
47
+ </ CardHeader >
48
+ < CardContent className = "flex flex-col items-center" >
49
+ < PageLoadingSpinner />
50
+ </ CardContent >
51
+ < CardFooter >
52
+ < SomethingWrongButton />
53
+ </ CardFooter >
54
+ </ Card >
55
+ ) ;
33
56
}
You can’t perform that action at this time.
0 commit comments