From 7ec2bdd3c4781b235324bc598154d41abcb2f31a Mon Sep 17 00:00:00 2001 From: SHREYASH270100 <110153438+SHREYASH270100@users.noreply.github.com> Date: Sat, 4 Nov 2023 15:33:45 +0530 Subject: [PATCH] added one more currency euro --- src/CryptoContext.js | 2 ++ src/components/Header.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/CryptoContext.js b/src/CryptoContext.js index 55c7c13..f673e76 100644 --- a/src/CryptoContext.js +++ b/src/CryptoContext.js @@ -9,6 +9,8 @@ const CryptoContext = ({ children }) => { useEffect(() => { if (currency === "INR") setSymbol("₹"); else if (currency === "USD") setSymbol("$"); + else if (currency === "EUR") setSymbol("€") + }, [currency]); return ( diff --git a/src/components/Header.js b/src/components/Header.js index b9525c1..de9aa21 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -62,6 +62,8 @@ function Header() { > USD INR + EUR +