From b0d850882f6df7140cd1bb91436ca2a69d2ade56 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 12 Apr 2022 14:16:20 +0430 Subject: [PATCH] update App.js and src/components/ReligiousTimes/index.js --- src/App.js | 2 +- src/components/ReligiousTimes/index.js | 17 ++++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/App.js b/src/App.js index 90cdb37..b9aa04f 100644 --- a/src/App.js +++ b/src/App.js @@ -107,7 +107,7 @@ function App() { {/* */} {/* */} {/* */} - {/* */} + {/* */} {/* */} {/* */} diff --git a/src/components/ReligiousTimes/index.js b/src/components/ReligiousTimes/index.js index bf4547b..05c5678 100644 --- a/src/components/ReligiousTimes/index.js +++ b/src/components/ReligiousTimes/index.js @@ -1,6 +1,6 @@ import React from 'react' -const times = { +const time = { morning: "صبح", sunrise: "طلوع", noon: "ظهر", @@ -10,9 +10,20 @@ const times = { } -const ReligiousTimes = () => { +const ReligiousTimes = ({hours}) => { return ( -
ReligiousTimes
+
+ {Object.keys(hours).map((hour,index) => ( +
+ + {time[hour]} + + + {hours[hour]} + +
+ ))} +
) }