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>
{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
className={
" w-1/2 h-full flex items-center justify-center cursor-pointer text-xs" +
(value ? "text-[#2483E1]" : "")
" w-1/2 h-full flex items-center justify-center cursor-pointer text-xs text-white " +
(value ? " text-[#0F0543] " : "")
}
>
{values[1]}
</div>
<div
className={
" w-1/2 h-full flex items-center justify-center cursor-pointer text-xs" +
(!value ? "text-[#2483E1]" : "")
" w-1/2 h-full flex items-center justify-center cursor-pointer text-xs text-white " +
(!value ? " text-[#0F0543] " : "")
}
>
{values[0]}

Loading…
Cancel
Save