This repository was archived by the owner on Jan 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +22
-19
lines changed Expand file tree Collapse file tree 6 files changed +22
-19
lines changed Original file line number Diff line number Diff line change 7
7
CardFooter ,
8
8
CardHeader ,
9
9
CardTitle ,
10
+ InputPhoneNumber ,
10
11
Switch ,
11
12
} from '@codefixlabs/ui' ;
12
13
import { BellIcon , CheckIcon } from 'lucide-react' ;
@@ -94,6 +95,10 @@ export default function Page(): React.JSX.Element {
94
95
</ Link >
95
96
</ div >
96
97
98
+ < div className = "" >
99
+ < InputPhoneNumber placeholder = "Enter your phone number" />
100
+ </ div >
101
+
97
102
< article className = "prose lg:prose-xl" >
98
103
< h1 > Garlic bread with cheese: What the science tells us</ h1 >
99
104
< p >
Original file line number Diff line number Diff line change 1
1
# @codefixlabs/hooks
2
2
3
+ ## 0.1.19
4
+
5
+ ### Patch Changes
6
+
7
+ - Only export contries
8
+
3
9
## 0.1.18
4
10
5
11
### Patch Changes
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @codefixlabs/hooks" ,
3
- "version" : " 0.1.18 " ,
3
+ "version" : " 0.1.19 " ,
4
4
"license" : " MIT" ,
5
5
"sideEffects" : false ,
6
6
"exports" : {
Original file line number Diff line number Diff line change 1
- import type { ICity , ICountry , IState } from 'country-state-city' ;
2
- import { City , Country , State } from 'country-state-city' ;
1
+ import type { ICountry } from 'country-state-city' ;
2
+ import { Country } from 'country-state-city' ;
3
3
import { useMemo } from 'react' ;
4
4
5
5
export function useCountries ( ) : {
6
6
countries : ICountry [ ] ;
7
- getStatesOfCountry : ( countryCode : string ) => IState [ ] ;
8
- getCitiesOfState : ( countryCode : string , stateCode : string ) => ICity [ ] ;
9
7
} {
10
8
const countries = useMemo < ICountry [ ] > (
11
9
( ) =>
@@ -18,20 +16,7 @@ export function useCountries(): {
18
16
[ ] ,
19
17
) ;
20
18
21
- const getStatesOfCountry = ( countryCode : string ) : IState [ ] => {
22
- return State . getStatesOfCountry ( countryCode ) ;
23
- } ;
24
-
25
- const getCitiesOfState = (
26
- countryCode : string ,
27
- stateCode : string ,
28
- ) : ICity [ ] => {
29
- return City . getCitiesOfState ( countryCode , stateCode ) ;
30
- } ;
31
-
32
19
return {
33
20
countries,
34
- getCitiesOfState,
35
- getStatesOfCountry,
36
21
} ;
37
22
}
Original file line number Diff line number Diff line change 1
1
# @codefixlabs/ui
2
2
3
+ ## 0.1.46
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @codefixlabs/hooks @0.1.19
9
+
3
10
## 0.1.45
4
11
5
12
### Patch Changes
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @codefixlabs/ui" ,
3
- "version" : " 0.1.45 " ,
3
+ "version" : " 0.1.46 " ,
4
4
"license" : " MIT" ,
5
5
"sideEffects" : false ,
6
6
"exports" : {
You can’t perform that action at this time.
0 commit comments