-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
112 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 22 additions & 16 deletions
38
app/(dashboard)/dashboard/settings/@plan/components/pay-button.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
app/(dashboard)/dashboard/settings/@plan/components/types.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
export type FetchCountry = { | ||
city: City; | ||
continent: Continent; | ||
country: Country; | ||
location: Location; | ||
subdivisions: Subdivision[]; | ||
state: State; | ||
datasource: Datasource[]; | ||
ip: string; | ||
}; | ||
|
||
export type City = { | ||
names: CityNames; | ||
name: string; | ||
}; | ||
|
||
export type CityNames = { | ||
en: string; | ||
}; | ||
|
||
export type Continent = { | ||
code: string; | ||
geoname_id: number; | ||
names: ContinentNames; | ||
name: string; | ||
}; | ||
|
||
export type ContinentNames = { | ||
de: string; | ||
en: string; | ||
es: string; | ||
fa: string; | ||
fr: string; | ||
ja: string; | ||
ko: string; | ||
'pt-BR': string; | ||
ru: string; | ||
'zh-CN': string; | ||
}; | ||
|
||
export type Country = { | ||
geoname_id: number; | ||
iso_code: string; | ||
names: ContinentNames; | ||
name: string; | ||
name_native: string; | ||
phone_code: string; | ||
capital: string; | ||
currency: string; | ||
flag: string; | ||
languages: Language[]; | ||
}; | ||
|
||
export type Language = { | ||
iso_code: string; | ||
name: string; | ||
name_native: string; | ||
}; | ||
|
||
export type Datasource = { | ||
name: string; | ||
attribution: string; | ||
license: string; | ||
}; | ||
|
||
export type Location = { | ||
latitude: number; | ||
longitude: number; | ||
}; | ||
|
||
export type State = { | ||
name: string; | ||
}; | ||
|
||
export type Subdivision = { | ||
names: CityNames; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.