|
|
@ -1,6 +1,6 @@ |
|
|
|
import React from 'react' |
|
|
|
import React from 'react' |
|
|
|
|
|
|
|
|
|
|
|
const times = { |
|
|
|
const time = { |
|
|
|
morning: "صبح", |
|
|
|
morning: "صبح", |
|
|
|
sunrise: "طلوع", |
|
|
|
sunrise: "طلوع", |
|
|
|
noon: "ظهر", |
|
|
|
noon: "ظهر", |
|
|
@ -10,9 +10,20 @@ const times = { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const ReligiousTimes = () => { |
|
|
|
const ReligiousTimes = ({hours}) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="bg-white shadow rounded-md max-w-[420px] w-1/3">ReligiousTimes</div> |
|
|
|
<div className="flex flex-row items-center justify-around bg-white shadow rounded-md max-w-[420px] w-1/3"> |
|
|
|
|
|
|
|
{Object.keys(hours).map((hour,index) => ( |
|
|
|
|
|
|
|
<div className="flex flex-row items-center bg-pink-200" key={index}> |
|
|
|
|
|
|
|
<span className="bg-red-400"> |
|
|
|
|
|
|
|
{time[hour]} |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
<span className="bg-blue-400"> |
|
|
|
|
|
|
|
{hours[hour]} |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
))} |
|
|
|
|
|
|
|
</div> |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|