update src/components/ReligiousTimes/index.js

master
Your Name 3 years ago
parent b0d850882f
commit dace88b92f
  1. 25
      src/components/ReligiousTimes/index.js

@ -1,25 +1,24 @@
import React from 'react' import React from 'react'
const time = { const time = {
morning: "صبح", morningTime: "صبح",
sunrise: "طلوع", sunriseTime: "طلوع",
noon: "ظهر", noonTime: "ظهر",
sunset: "غروب", sunsetTime: "غروب",
maghrib: "مغرب", maghribTime: "مغرب",
midnight: "نیمه شب", midnightTime: "نیمه شب",
} }
const ReligiousTimes = ({hours}) => { const ReligiousTimes = ({hours}) => {
return ( return (
<div className="flex flex-row items-center justify-around bg-white shadow rounded-md max-w-[420px] w-1/3"> <div className="flex flex-row items-center justify-around bg-white shadow-sm rounded-lg max-w-[444px] w-1/3 py-3.5 px-0.5 mr-10">
{Object.keys(hours).map((hour,index) => ( {Object.keys(hours).map((hour, index) => (
<div className="flex flex-row items-center bg-pink-200" key={index}> <div className="flex flex-row items-center" key={index}>
<span className="bg-red-400"> <span className="text-xs text-[#0F0543] font-bold">
{time[hour]} {time[hour]}
</span> </span>
<span className="bg-blue-400"> <span className="text-xs text-[#2483E1] mr-1 font-bold">
{hours[hour]} {hours[hour]}
</span> </span>
</div> </div>
))} ))}

Loading…
Cancel
Save