Skip to content

Commit

Permalink
fix: replace data source with npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron committed Sep 12, 2024
1 parent a530a35 commit 215f2ad
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 180 deletions.
178 changes: 0 additions & 178 deletions lib/currencies.tsx

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"buffer": "^6.0.3",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"currency-list": "^1.0.8",
"dayjs": "^1.11.10",
"expo": "~51.0.31",
"expo-camera": "~15.0.15",
Expand Down
5 changes: 3 additions & 2 deletions pages/settings/FiatCurrency.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import { Text } from "~/components/ui/text";
import { useAppStore } from "~/lib/state/appStore";
import Screen from "~/components/Screen";
import { cn } from "~/lib/utils";
import { currencies } from "../../lib/currencies";
import CurrencyList from 'currency-list';

const currencies: [string, string][] = Object.entries(CurrencyList.getAll("en_US")).map(([code, details]) => [code, details.name]);

export function FiatCurrency() {
const [fiatCurrency, setFiatCurrency] = React.useState(
Expand All @@ -26,7 +27,7 @@ export function FiatCurrency() {
<Text className="text-lg text-muted-foreground">
({item[0]})
</Text>
</TouchableOpacity >
</TouchableOpacity>
);

return (
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3282,6 +3282,11 @@ csstype@^3.0.2:
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81"
integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==

currency-list@^1.0.8:
version "1.0.8"
resolved "https://registry.yarnpkg.com/currency-list/-/currency-list-1.0.8.tgz#544de80a1b64c6192dbd789aefe610371869616e"
integrity sha512-KBUtf8AzoP2WYeAKUYFhhNdHRx8Xw2UoOUnBNVir43RxL96T+iSHMtThtT1DFNtYbbVVyD08ETe3aamn+JX7RA==

dag-map@~1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/dag-map/-/dag-map-1.0.2.tgz#e8379f041000ed561fc515475c1ed2c85eece8d7"
Expand Down

0 comments on commit 215f2ad

Please sign in to comment.