update src/components/CustomSwitch/index.js

master
mahdi 3 years ago
parent 605e452047
commit 3aed367baa
  1. 10
      src/components/CustomSwitch/index.js

@ -41,19 +41,19 @@ const CustomSwitch = ({
}`} }`}
></div> ></div>
{values ? ( {values ? (
<div className=" w-[98%] h-[90%] flex flex-row-reverse right-[1%] top-[5%] z-10 absolute text-xs"> <div className=" w-[98%] h-[90%] flex flex-row-reverse right-[1%] top-[5%] z-10 absolute text-xs ">
<div <div
className={ className={
" w-1/2 h-full flex items-center justify-center cursor-pointer text-xs" + " w-1/2 h-full flex items-center justify-center cursor-pointer text-xs text-white " +
(value ? "text-[#2483E1]" : "") (value ? " text-[#0F0543] " : "")
} }
> >
{values[1]} {values[1]}
</div> </div>
<div <div
className={ className={
" w-1/2 h-full flex items-center justify-center cursor-pointer text-xs" + " w-1/2 h-full flex items-center justify-center cursor-pointer text-xs text-white " +
(!value ? "text-[#2483E1]" : "") (!value ? " text-[#0F0543] " : "")
} }
> >
{values[0]} {values[0]}

Loading…
Cancel
Save