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]} + +
+ ))} +
) }