diff --git a/src/App.tsx b/src/App.tsx index fea4163..ec011d8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -4,7 +4,7 @@ import { CurrencyJson, CurrencyData, CachePayload } from './interfaces' import { countryCurrencyCodes, countryCodesCountryNames, API_URL } from './consts' import toast, { Toaster } from 'react-hot-toast'; import { useAutoAnimate } from '@formkit/auto-animate/react' -import { Dialog, Transition, Menu } from '@headlessui/react'; +import { Dialog, Transition, Menu, Switch } from '@headlessui/react'; import { InformationCircleIcon } from '@heroicons/react/20/solid'; import Header from './Header' import Meter from './Meter' @@ -20,6 +20,7 @@ function App() { const [baseSlotValues, setBaseSlotValues] = useState([0, 0, 0, 0, 0]) const [currencyJson, setCurrencyJson] = useState({} as CurrencyJson) const [currencyData, setCurrencyData] = useState({} as CurrencyData) + const [exactValues, setExactValues] = useState(false) const [isModalOpen, setIsModalOpen] = useState(false) // Actually uses `active` prop // const [isMenuEnabled, setMenuEnabled] = useState(false) @@ -229,7 +230,26 @@ function App() { {getSubtitleText()}

{selectedCountry && ( - +
+ +
+

Show Exact Conversion Values

+ + Use setting + + {/*

On

*/} +
+
)} {(selectedCountry && currencyData) && (

@@ -249,13 +269,14 @@ function App() {
- + ) }) @@ -326,7 +347,7 @@ function App() { values time and time again and don't really let that sink into memory.

- If you found this app useful, feel free to check out some other stuff I made or ⭐ star it on GitHub. + If you found this app useful, feel free to check out ⭐ some other stuff I made.

@@ -352,14 +373,8 @@ function App() {
+ {/* Hamburger Menu */} - {/* Menu Hamburger */} - - {/* Menu -
diff --git a/src/interfaces.tsx b/src/interfaces.tsx index c3471eb..1e6283a 100644 --- a/src/interfaces.tsx +++ b/src/interfaces.tsx @@ -39,6 +39,7 @@ export interface MeterProps { export interface MeterCompareProps { baseSlotValuesToCompare: number[]; + exactValues: boolean; homeCurrencyCode: string; homeCurrencyRate: number; currencyCodeToCompare: string;