This repository has been archived by the owner on Nov 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
27b61ad
commit dc6df4b
Showing
5 changed files
with
63 additions
and
28 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const currencyConfig = { | ||
currencies: ['USD', 'EUR', 'GBP', 'JPY', 'HKD', 'CNY', 'TWD'], | ||
currencyToCountry: { | ||
USD: 'US', // United States | ||
EUR: 'DE', // Germany (as a representative of the Eurozone) | ||
GBP: 'GB', // United Kingdom | ||
JPY: 'JP', // Japan | ||
HKD: 'HK', // Hong Kong | ||
CNY: 'CN', // China | ||
TWD: 'TW', // Taiwan | ||
// Add more currencies as needed | ||
}, | ||
}; | ||
|
||
export default currencyConfig; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,5 @@ | ||
const currencyToCountry = { | ||
USD: 'US', // United States | ||
EUR: 'DE', // Germany (as a representative of the Eurozone) | ||
GBP: 'GB', // United Kingdom | ||
JPY: 'JP', // Japan | ||
HKD: 'HK', // Hong Kong | ||
CNY: 'CN', // China | ||
TWD: 'TW', // Taiwan | ||
// Add more currencies as needed | ||
}; | ||
import currencyConfig from '../config/currencyConfig'; | ||
|
||
const { currencyToCountry } = currencyConfig; | ||
|
||
export default currencyToCountry; |