update src/components/ThemeColor/index.js

master
mahdi 3 years ago
parent 66f37997a8
commit 44f9cabdb2
  1. 6
      src/components/ThemeColor/index.js

@ -98,11 +98,11 @@ const ColorCard = ({ theme, text, dark, light, item, setItem }) => {
/> />
)} )}
</div> </div>
<div className="flex flex-row justify-around"> <div className="flex flex-row justify-between">
{" "} {" "}
{dark ? ( {dark ? (
<div <div
className={`flex-col cursor-pointer rounded-sm relative p-4 w-[160px] h-[75px] bg-${item}Dark ${ className={`flex-col cursor-pointer rounded-sm relative p-4 w-[165px] h-[75px] bg-${item}Dark ${
text ? `text-${item}Text` : "" text ? `text-${item}Text` : ""
}`} }`}
onClick={() => setItem(item + "Dark")} onClick={() => setItem(item + "Dark")}
@ -116,7 +116,7 @@ const ColorCard = ({ theme, text, dark, light, item, setItem }) => {
) : null} ) : null}
{light ? ( {light ? (
<div <div
className={`flex flex-col cursor-pointer rounded-sm relative p-4 w-[160px] h-[75px] bg-${item}Light ${ className={`flex flex-col cursor-pointer rounded-sm relative p-4 w-[165px] h-[75px] bg-${item}Light ${
text ? `text-${item}Text` : "" text ? `text-${item}Text` : ""
}`} }`}
onClick={() => setItem(item + "Light")} onClick={() => setItem(item + "Light")}

Loading…
Cancel
Save